提交 5d68e676 编写于 作者: M Martin Aeschlimann

hide exporer arrows improvements (for #35856)

上级 20d7f8ab
......@@ -107,7 +107,7 @@
}
.explorer-folders-view.hide-arrows .monaco-tree-row .content::before {
background-image: none;
display: none;
}
.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row:hover > .content .monaco-action-bar,
......
......@@ -209,6 +209,10 @@ const schema: IJSONSchema = {
highContrast: {
$ref: '#/definitions/associations',
description: nls.localize('schema.highContrast', 'Optional associations for file icons in high contrast color themes.')
},
hidesExplorerArrows: {
type: 'boolean',
description: nls.localize('schema.hidesExplorerArrows', 'Configures whether the file explorer\'s arrows should be hidden when this theme is active.')
}
}
};
......
......@@ -129,7 +129,7 @@ function _loadIconThemeDocument(fileSetPath: string): TPromise<IconThemeDocument
function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, iconThemeDocument: IconThemeDocument): { content: string; hasFileIcons: boolean; hasFolderIcons: boolean; hidesExplorerArrows: boolean; } {
let result = { content: '', hasFileIcons: false, hasFolderIcons: false, hidesExplorerArrows: false };
let result = { content: '', hasFileIcons: false, hasFolderIcons: false, hidesExplorerArrows: iconThemeDocument.hidesExplorerArrows };
if (!iconThemeDocument.iconDefinitions) {
return result;
......@@ -251,10 +251,6 @@ function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, ic
return result;
}
if (iconThemeDocument.hidesExplorerArrows) {
result.hidesExplorerArrows = true;
}
let cssRules: string[] = [];
let fonts = iconThemeDocument.fonts;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册