提交 51176bb1 编写于 作者: D Daniel Imms

Add close terminal button back

上级 a92cc54d
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><title>Layer 1</title><rect height="3" width="11" y="7" x="3" fill="#C5C5C5"/></svg>
\ No newline at end of file
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><title>Layer 1</title><rect height="3" width="11" y="7" x="3" fill="#424242"/></svg>
\ No newline at end of file
......@@ -35,13 +35,9 @@
/* Light theme */
.monaco-workbench .terminal-action.close { background: url('close.svg') center center no-repeat; }
.monaco-workbench .terminal-action.focus-next { background: url('focus-next.svg') center center no-repeat; }
.monaco-workbench .terminal-action.focus-previous { background: url('focus-previous.svg') center center no-repeat; }
.monaco-workbench .terminal-action.new { background: url('new.svg') center center no-repeat; }
/* Dark theme */
.vs-dark .monaco-workbench .terminal-action.close { background: url('close-inverse.svg') center center no-repeat; }
.vs-dark .monaco-workbench .terminal-action.focus-next { background: url('focus-next-inverse.svg') center center no-repeat; }
.vs-dark .monaco-workbench .terminal-action.focus-previous { background: url('focus-previous-inverse.svg') center center no-repeat; }
.vs-dark .monaco-workbench .terminal-action.new { background: url('new-inverse.svg') center center no-repeat; }
/* High contrast black theme */
.hc-black .monaco-workbench .terminal-action { background: none; }
......@@ -53,6 +49,4 @@
width: 16px;
}
.hc-black .monaco-workbench .terminal-action.close:before { content: url('close-inverse.svg'); }
.hc-black .monaco-workbench .terminal-action.focus-next:before { content: url('focus-next-inverse.svg'); }
.hc-black .monaco-workbench .terminal-action.focus-previous:before { content: url('focus-previous-inverse.svg'); }
.hc-black .monaco-workbench .terminal-action.new:before { content: url('new-inverse.svg'); }
......@@ -8,7 +8,7 @@ import lifecycle = require('vs/base/common/lifecycle');
import platform = require('vs/base/common/platform');
import {Action, IAction} from 'vs/base/common/actions';
import {Builder, Dimension} from 'vs/base/browser/builder';
import {CreateNewTerminalAction, SwitchTerminalInstanceAction, SwitchTerminalInstanceActionItem} from 'vs/workbench/parts/terminal/electron-browser/terminalActions';
import {CloseTerminalAction, CreateNewTerminalAction, SwitchTerminalInstanceAction, SwitchTerminalInstanceActionItem} from 'vs/workbench/parts/terminal/electron-browser/terminalActions';
import {IActionItem} from 'vs/base/browser/ui/actionbar/actionbar';
import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
import {IInstantiationService} from 'vs/platform/instantiation/common/instantiation';
......@@ -57,8 +57,8 @@ export class TerminalPanel extends Panel {
if (!this.actions) {
this.actions = [
this.instantiationService.createInstance(SwitchTerminalInstanceAction, SwitchTerminalInstanceAction.ID, SwitchTerminalInstanceAction.LABEL),
this.instantiationService.createInstance(CreateNewTerminalAction, CreateNewTerminalAction.ID, CreateNewTerminalAction.LABEL)
// TODO: Add close
this.instantiationService.createInstance(CreateNewTerminalAction, CreateNewTerminalAction.ID, CreateNewTerminalAction.LABEL),
this.instantiationService.createInstance(CloseTerminalAction, CloseTerminalAction.ID, CloseTerminalAction.LABEL)
];
this.actions.forEach(a => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册