Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0bbbc43f
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,发现更多精彩内容 >>
提交
0bbbc43f
编写于
6月 18, 2019
作者:
M
Miguel Solorio
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update close buttons
上级
867b0b70
变更
19
显示空白变更内容
内联
并排
Showing
19 changed file
with
46 addition
and
27 deletion
+46
-27
src/vs/workbench/browser/parts/editor/editor.contribution.ts
src/vs/workbench/browser/parts/editor/editor.contribution.ts
+8
-8
src/vs/workbench/browser/parts/editor/media/close-all-dark.svg
...s/workbench/browser/parts/editor/media/close-all-dark.svg
+4
-0
src/vs/workbench/browser/parts/editor/media/close-all-light.svg
.../workbench/browser/parts/editor/media/close-all-light.svg
+4
-0
src/vs/workbench/browser/parts/editor/media/close-big-alt.svg
...vs/workbench/browser/parts/editor/media/close-big-alt.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-big-inverse-alt.svg
...ench/browser/parts/editor/media/close-big-inverse-alt.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-big-inverse.svg
...orkbench/browser/parts/editor/media/close-big-inverse.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-big.svg
src/vs/workbench/browser/parts/editor/media/close-big.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-dark.svg
src/vs/workbench/browser/parts/editor/media/close-dark.svg
+4
-0
src/vs/workbench/browser/parts/editor/media/close-hc.svg
src/vs/workbench/browser/parts/editor/media/close-hc.svg
+4
-0
src/vs/workbench/browser/parts/editor/media/close-inverse.svg
...vs/workbench/browser/parts/editor/media/close-inverse.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-light.svg
src/vs/workbench/browser/parts/editor/media/close-light.svg
+4
-0
src/vs/workbench/browser/parts/editor/media/close-statusview-inverse.svg
...h/browser/parts/editor/media/close-statusview-inverse.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close-statusview.svg
...workbench/browser/parts/editor/media/close-statusview.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/close.svg
src/vs/workbench/browser/parts/editor/media/close.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/closeall-editors-inverse.svg
...h/browser/parts/editor/media/closeall-editors-inverse.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/closeall-editors.svg
...workbench/browser/parts/editor/media/closeall-editors.svg
+0
-1
src/vs/workbench/browser/parts/editor/media/editorstatus.css
src/vs/workbench/browser/parts/editor/media/editorstatus.css
+6
-3
src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css
...workbench/browser/parts/editor/media/tabstitlecontrol.css
+6
-3
src/vs/workbench/browser/parts/editor/media/titlecontrol.css
src/vs/workbench/browser/parts/editor/media/titlecontrol.css
+6
-3
未找到文件。
src/vs/workbench/browser/parts/editor/editor.contribution.ts
浏览文件 @
0bbbc43f
...
...
@@ -529,16 +529,16 @@ appendEditorToolItem(
{
id
:
editorCommands
.
CLOSE_EDITOR_COMMAND_ID
,
title
:
nls
.
localize
(
'
close
'
,
"
Close
"
),
iconDark
:
'
close-
big-inverse-alt
.svg
'
,
iconLight
:
'
close-
big-al
t.svg
'
iconDark
:
'
close-
dark
.svg
'
,
iconLight
:
'
close-
ligh
t.svg
'
},
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
config.workbench.editor.showTabs
'
),
ContextKeyExpr
.
not
(
'
groupActiveEditorDirty
'
)),
1000000
,
// towards the far end
{
id
:
editorCommands
.
CLOSE_EDITORS_IN_GROUP_COMMAND_ID
,
title
:
nls
.
localize
(
'
closeAll
'
,
"
Close All
"
),
iconDark
:
'
close
all-editors-inverse
.svg
'
,
iconLight
:
'
close
all-editors
.svg
'
iconDark
:
'
close
-all-dark
.svg
'
,
iconLight
:
'
close
-all-light
.svg
'
}
);
...
...
@@ -546,16 +546,16 @@ appendEditorToolItem(
{
id
:
editorCommands
.
CLOSE_EDITOR_COMMAND_ID
,
title
:
nls
.
localize
(
'
close
'
,
"
Close
"
),
iconDark
:
'
close-d
irty-inverse-alt
.svg
'
,
iconLight
:
'
close-
dirty-al
t.svg
'
iconDark
:
'
close-d
ark
.svg
'
,
iconLight
:
'
close-
ligh
t.svg
'
},
ContextKeyExpr
.
and
(
ContextKeyExpr
.
not
(
'
config.workbench.editor.showTabs
'
),
ContextKeyExpr
.
has
(
'
groupActiveEditorDirty
'
)),
1000000
,
// towards the far end
{
id
:
editorCommands
.
CLOSE_EDITORS_IN_GROUP_COMMAND_ID
,
title
:
nls
.
localize
(
'
closeAll
'
,
"
Close All
"
),
iconDark
:
'
close
all-editors-inverse
.svg
'
,
iconLight
:
'
close
all-editors
.svg
'
iconDark
:
'
close
-all-dark
.svg
'
,
iconLight
:
'
close
-all-light
.svg
'
}
);
...
...
src/vs/workbench/browser/parts/editor/media/close-all-dark.svg
0 → 100644
浏览文件 @
0bbbc43f
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M13 3H6V5H11V10H13V3ZM11 11H14V2H5V5H2V14H11V11ZM10 11V10V6H6H5H3V13H10V11Z"
fill=
"#C5C5C5"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M8.62132 8.08578L7.91421 7.37868L6.5 8.79289L5.08579 7.37868L4.37868 8.08578L5.79289 9.5L4.37868 10.9142L5.08579 11.6213L6.5 10.2071L7.91421 11.6213L8.62132 10.9142L7.20711 9.5L8.62132 8.08578Z"
fill=
"#C5C5C5"
/>
</svg>
src/vs/workbench/browser/parts/editor/media/close-all-light.svg
0 → 100644
浏览文件 @
0bbbc43f
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M13 3H6V5H11V10H13V3ZM11 11H14V2H5V5H2V14H11V11ZM10 11V10V6H6H5H3V13H10V11Z"
fill=
"#424242"
/>
<path
fill-rule=
"evenodd"
clip-rule=
"evenodd"
d=
"M8.62132 8.08578L7.91421 7.37868L6.5 8.79289L5.08579 7.37868L4.37868 8.08578L5.79289 9.5L4.37868 10.9142L5.08579 11.6213L6.5 10.2071L7.91421 11.6213L8.62132 10.9142L7.20711 9.5L8.62132 8.08578Z"
fill=
"#424242"
/>
</svg>
src/vs/workbench/browser/parts/editor/media/close-big-alt.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.784 8L13 11.217 11.215 13 8.001 9.786 4.785 13 3 11.216l3.214-3.215L3 4.785 4.784 3 8 6.216 11.216 3 13 4.785 9.784 8.001z"
fill=
"#424242"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-big-inverse-alt.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.784 8L13 11.217 11.215 13 8.001 9.786 4.785 13 3 11.216l3.214-3.215L3 4.785 4.784 3 8 6.216 11.216 3 13 4.785 9.784 8.001z"
fill=
"#C5C5C5"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-big-inverse.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.784 8L13 11.217 11.215 13 8.001 9.786 4.785 13 3 11.216l3.214-3.215L3 4.785 4.784 3 8 6.216 11.216 3 13 4.785 9.784 8.001z"
fill=
"#C5C5C5"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-big.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.784 8L13 11.217 11.215 13 8.001 9.786 4.785 13 3 11.216l3.214-3.215L3 4.785 4.784 3 8 6.216 11.216 3 13 4.785 9.784 8.001z"
fill=
"#424242"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-dark.svg
0 → 100644
浏览文件 @
0bbbc43f
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M4 4L12 12"
stroke=
"#C5C5C5"
/>
<path
d=
"M12 4L4 12"
stroke=
"#C5C5C5"
/>
</svg>
src/vs/workbench/browser/parts/editor/media/close-hc.svg
0 → 100644
浏览文件 @
0bbbc43f
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M4 4L12 12"
stroke=
"white"
/>
<path
d=
"M12 4L4 12"
stroke=
"white"
/>
</svg>
src/vs/workbench/browser/parts/editor/media/close-inverse.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.428 8L12 10.573 10.572 12 8 9.428 5.428 12 4 10.573 6.572 8 4 5.428 5.427 4 8 6.572 10.573 4 12 5.428 9.428 8z"
fill=
"#E8E8E8"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-light.svg
0 → 100644
浏览文件 @
0bbbc43f
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
>
<path
d=
"M4 4L12 12"
stroke=
"#424242"
/>
<path
d=
"M12 4L4 12"
stroke=
"#424242"
/>
</svg>
src/vs/workbench/browser/parts/editor/media/close-statusview-inverse.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"3 3 16 16"
enable-background=
"new 3 3 16 16"
><polygon
fill=
"#C5C5C5"
points=
"12.597,11.042 15.4,13.845 13.844,15.4 11.042,12.598 8.239,15.4 6.683,13.845 9.485,11.042 6.683,8.239 8.238,6.683 11.042,9.486 13.845,6.683 15.4,8.239"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close-statusview.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
viewBox=
"3 3 16 16"
enable-background=
"new 3 3 16 16"
><polygon
fill=
"#424242"
points=
"12.597,11.042 15.4,13.845 13.844,15.4 11.042,12.598 8.239,15.4 6.683,13.845 9.485,11.042 6.683,8.239 8.238,6.683 11.042,9.486 13.845,6.683 15.4,8.239"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/close.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
width=
"16"
height=
"16"
viewBox=
"0 0 16 16"
fill=
"none"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M9.428 8L12 10.573 10.572 12 8 9.428 5.428 12 4 10.573 6.572 8 4 5.428 5.427 4 8 6.572 10.573 4 12 5.428 9.428 8z"
fill=
"#424242"
/></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/closeall-editors-inverse.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 16 16"
enable-background=
"new 0 0 16 16"
height=
"16"
width=
"16"
><path
fill=
"#1E1E1E"
d=
"M16 12h-2v2h-2v2H0V5h2V3h2V1h12v11z"
/><g
fill=
"#C5C5C5"
><path
d=
"M3 5h9v8h1V4H3zM5 2v1h9v8h1V2zM1 6v9h10V6H1zm8 7H7.5L6 11.5 4.5 13H3l2.3-2.3L3 8.5h1.5L6 10l1.5-1.5H9l-2.3 2.3L9 13z"
/></g></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/closeall-editors.svg
已删除
100644 → 0
浏览文件 @
867b0b70
<svg
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 16 16"
enable-background=
"new 0 0 16 16"
height=
"16"
width=
"16"
><path
fill=
"#F6F6F6"
d=
"M16 12h-2v2h-2v2H0V5h2V3h2V1h12v11z"
/><g
fill=
"#424242"
><path
d=
"M3 5h9v8h1V4H3zM5 2v1h9v8h1V2zM1 6v9h10V6H1zm8 7H7.5L6 11.5 4.5 13H3l2.3-2.3L3 8.5h1.5L6 10l1.5-1.5H9l-2.3 2.3L9 13z"
/></g></svg>
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/editorstatus.css
浏览文件 @
0bbbc43f
...
...
@@ -51,10 +51,13 @@
}
.vs
.monaco-workbench
.screen-reader-detected-explanation
.cancel
{
background
:
url('close-statusview.svg')
center
center
no-repeat
;
background
:
url('close-light.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.screen-reader-detected-explanation
.cancel
{
background
:
url('close-dark.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.screen-reader-detected-explanation
.cancel
,
.hc-black
.monaco-workbench
.screen-reader-detected-explanation
.cancel
{
background
:
url('close-
statusview-inverse
.svg')
center
center
no-repeat
;
background
:
url('close-
hc
.svg')
center
center
no-repeat
;
}
\ No newline at end of file
src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css
浏览文件 @
0bbbc43f
...
...
@@ -226,12 +226,15 @@
}
.vs
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.tabs-container
>
.tab.dirty
.close-editor-action
:hover
{
background
:
url('close.svg')
center
center
no-repeat
;
background
:
url('close-light.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.tabs-container
>
.tab.dirty
.close-editor-action
:hover
{
background
:
url('close-dark.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.tabs-container
>
.tab.dirty
.close-editor-action
:hover
,
.hc-black
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.tabs-container
>
.tab.dirty
.close-editor-action
:hover
{
background
:
url('close-
inverse
.svg')
center
center
no-repeat
;
background
:
url('close-
hc
.svg')
center
center
no-repeat
;
}
/* No Tab Close Button */
...
...
src/vs/workbench/browser/parts/editor/media/titlecontrol.css
浏览文件 @
0bbbc43f
...
...
@@ -57,12 +57,15 @@
/* Actions */
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.close-editor-action
{
background
:
url('close.svg')
center
center
no-repeat
;
background
:
url('close-light.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.close-editor-action
{
background
:
url('close-dark.svg')
center
center
no-repeat
;
}
.vs-dark
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.close-editor-action
,
.hc-black
.monaco-workbench
.part.editor
>
.content
.editor-group-container
>
.title
.close-editor-action
{
background
:
url('close-
inverse
.svg')
center
center
no-repeat
;
background
:
url('close-
hc
.svg')
center
center
no-repeat
;
}
/* Drag and Drop Feedback */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录