Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
51176bb1
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51176bb1
编写于
6月 21, 2016
作者:
D
Daniel Imms
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add close terminal button back
上级
a92cc54d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
9 deletion
+5
-9
src/vs/workbench/parts/terminal/electron-browser/media/close-inverse.svg
...h/parts/terminal/electron-browser/media/close-inverse.svg
+1
-0
src/vs/workbench/parts/terminal/electron-browser/media/close.svg
...workbench/parts/terminal/electron-browser/media/close.svg
+1
-0
src/vs/workbench/parts/terminal/electron-browser/media/terminal.css
...kbench/parts/terminal/electron-browser/media/terminal.css
+0
-6
src/vs/workbench/parts/terminal/electron-browser/terminalPanel.ts
...orkbench/parts/terminal/electron-browser/terminalPanel.ts
+3
-3
未找到文件。
src/vs/workbench/parts/terminal/electron-browser/media/close-inverse.svg
0 → 100644
浏览文件 @
51176bb1
<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
src/vs/workbench/parts/terminal/electron-browser/media/close.svg
0 → 100644
浏览文件 @
51176bb1
<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
src/vs/workbench/parts/terminal/electron-browser/media/terminal.css
浏览文件 @
51176bb1
...
...
@@ -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')
;
}
src/vs/workbench/parts/terminal/electron-browser/terminalPanel.ts
浏览文件 @
51176bb1
...
...
@@ -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
{
C
loseTerminalAction
,
C
reateNewTerminalAction
,
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录