Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
28ee527b
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,发现更多精彩内容 >>
提交
28ee527b
编写于
10月 12, 2017
作者:
M
Martin Aeschlimann
提交者:
GitHub
10月 12, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #35856 from tam5/hide-explorer-arrows
allow hiding explorer arrows via icon theme
上级
b4de6e87
6f2e46f9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
2 deletion
+17
-2
src/vs/workbench/parts/files/browser/media/explorerviewlet.css
...s/workbench/parts/files/browser/media/explorerviewlet.css
+4
-0
src/vs/workbench/parts/files/browser/views/explorerView.ts
src/vs/workbench/parts/files/browser/views/explorerView.ts
+1
-0
src/vs/workbench/services/themes/common/workbenchThemeService.ts
...workbench/services/themes/common/workbenchThemeService.ts
+1
-0
src/vs/workbench/services/themes/electron-browser/fileIconThemeData.ts
...nch/services/themes/electron-browser/fileIconThemeData.ts
+10
-2
src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts
...services/themes/electron-browser/workbenchThemeService.ts
+1
-0
未找到文件。
src/vs/workbench/parts/files/browser/media/explorerviewlet.css
浏览文件 @
28ee527b
...
...
@@ -106,6 +106,10 @@
background-image
:
url("collapsed-hc.svg")
;
}
.explorer-folders-view.hide-arrows
.monaco-tree-row
.content
::before
{
background-image
:
none
;
}
.explorer-viewlet
.explorer-open-editors
.monaco-tree
.monaco-tree-row
:hover
>
.content
.monaco-action-bar
,
.explorer-viewlet
.explorer-open-editors
.monaco-tree.focused
.monaco-tree-row.focused
>
.content
.monaco-action-bar
,
.explorer-viewlet
.explorer-open-editors
.monaco-tree
.monaco-tree-row
>
.content.dirty
>
.monaco-action-bar
{
...
...
src/vs/workbench/parts/files/browser/views/explorerView.ts
浏览文件 @
28ee527b
...
...
@@ -161,6 +161,7 @@ export class ExplorerView extends ViewsViewletPanel {
const
onFileIconThemeChange
=
(
fileIconTheme
:
IFileIconTheme
)
=>
{
DOM
.
toggleClass
(
this
.
treeContainer
,
'
align-icons-and-twisties
'
,
fileIconTheme
.
hasFileIcons
&&
!
fileIconTheme
.
hasFolderIcons
);
DOM
.
toggleClass
(
this
.
treeContainer
,
'
hide-arrows
'
,
fileIconTheme
.
hidesExplorerArrows
);
};
this
.
disposables
.
push
(
this
.
themeService
.
onDidFileIconThemeChange
(
onFileIconThemeChange
));
...
...
src/vs/workbench/services/themes/common/workbenchThemeService.ts
浏览文件 @
28ee527b
...
...
@@ -47,6 +47,7 @@ export interface IFileIconTheme {
readonly
isLoaded
:
boolean
;
readonly
hasFileIcons
?:
boolean
;
readonly
hasFolderIcons
?:
boolean
;
readonly
hidesExplorerArrows
?:
boolean
;
}
export
interface
IWorkbenchThemeService
extends
IThemeService
{
...
...
src/vs/workbench/services/themes/electron-browser/fileIconThemeData.ts
浏览文件 @
28ee527b
...
...
@@ -21,6 +21,7 @@ export class FileIconThemeData implements IFileIconTheme {
description
?:
string
;
hasFileIcons
?:
boolean
;
hasFolderIcons
?:
boolean
;
hidesExplorerArrows
?:
boolean
;
isLoaded
:
boolean
;
path
?:
string
;
extensionData
:
ExtensionData
;
...
...
@@ -38,6 +39,7 @@ export class FileIconThemeData implements IFileIconTheme {
this
.
styleSheetContent
=
result
.
content
;
this
.
hasFileIcons
=
result
.
hasFileIcons
;
this
.
hasFolderIcons
=
result
.
hasFolderIcons
;
this
.
hidesExplorerArrows
=
result
.
hidesExplorerArrows
;
this
.
isLoaded
=
true
;
return
this
.
styleSheetContent
;
});
...
...
@@ -69,6 +71,7 @@ export class FileIconThemeData implements IFileIconTheme {
themeData
.
settingsId
=
null
;
themeData
.
hasFileIcons
=
false
;
themeData
.
hasFolderIcons
=
false
;
themeData
.
hidesExplorerArrows
=
false
;
themeData
.
isLoaded
=
true
;
themeData
.
extensionData
=
null
;
}
...
...
@@ -110,6 +113,7 @@ interface IconThemeDocument extends IconsAssociation {
fonts
:
FontDefinition
[];
light
?:
IconsAssociation
;
highContrast
?:
IconsAssociation
;
hidesExplorerArrows
?:
boolean
;
}
function
_loadIconThemeDocument
(
fileSetPath
:
string
):
TPromise
<
IconThemeDocument
>
{
...
...
@@ -123,9 +127,9 @@ function _loadIconThemeDocument(fileSetPath: string): TPromise<IconThemeDocument
});
}
function
_processIconThemeDocument
(
id
:
string
,
iconThemeDocumentPath
:
string
,
iconThemeDocument
:
IconThemeDocument
):
{
content
:
string
;
hasFileIcons
:
boolean
;
hasFolderIcons
:
boolean
;
}
{
function
_processIconThemeDocument
(
id
:
string
,
iconThemeDocumentPath
:
string
,
iconThemeDocument
:
IconThemeDocument
):
{
content
:
string
;
hasFileIcons
:
boolean
;
hasFolderIcons
:
boolean
;
hidesExplorerArrows
:
boolean
;
}
{
let
result
=
{
content
:
''
,
hasFileIcons
:
false
,
hasFolderIcons
:
false
};
let
result
=
{
content
:
''
,
hasFileIcons
:
false
,
hasFolderIcons
:
false
,
hidesExplorerArrows
:
false
};
if
(
!
iconThemeDocument
.
iconDefinitions
)
{
return
result
;
...
...
@@ -247,6 +251,10 @@ function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, ic
return
result
;
}
if
(
iconThemeDocument
.
hidesExplorerArrows
)
{
result
.
hidesExplorerArrows
=
true
;
}
let
cssRules
:
string
[]
=
[];
let
fonts
=
iconThemeDocument
.
fonts
;
...
...
src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts
浏览文件 @
28ee527b
...
...
@@ -118,6 +118,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
isLoaded
:
false
,
hasFileIcons
:
false
,
hasFolderIcons
:
false
,
hidesExplorerArrows
:
false
,
extensionData
:
null
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录