Skip to content

Commit

Permalink
hide exporer arrows improvements (for #35856)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Oct 12, 2017
1 parent 20d7f8a commit 5d68e67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5d68e67

Please sign in to comment.