fix(Lighter): Fix folders icon association
This commit is contained in:
parent
780722c21a
commit
b2c8be8f26
3 changed files with 17 additions and 5 deletions
|
@ -54,6 +54,14 @@ let accentsProperties: IGenericObject<IAccentCustomProperty> = {
|
||||||
"notificationLink.foreground": {
|
"notificationLink.foreground": {
|
||||||
alpha: 100,
|
alpha: 100,
|
||||||
value: undefined
|
value: undefined
|
||||||
|
},
|
||||||
|
"editor.findWidgetResizeBorder": {
|
||||||
|
alpha: 100,
|
||||||
|
value: undefined
|
||||||
|
},
|
||||||
|
"editorWidget.border": {
|
||||||
|
alpha: 100,
|
||||||
|
value: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,16 +24,18 @@ function replaceIconPathWithAccent(iconPath: string, accentName: string): string
|
||||||
return iconPath.replace('.svg', `.accent.${ accentName }.svg`);
|
return iconPath.replace('.svg', `.accent.${ accentName }.svg`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVariantFromColor(color: string): string {
|
const getVariantFromColor = (color: string): string => {
|
||||||
switch (color) {
|
switch (true) {
|
||||||
case undefined || 'Material Theme':
|
case color === undefined || color === 'Material Theme':
|
||||||
return 'Default';
|
return 'Default';
|
||||||
case 'Material Theme High Contrast':
|
case color === 'Material Theme High Contrast':
|
||||||
return 'Default High Contrast';
|
return 'Default High Contrast';
|
||||||
|
case color.includes('Material Theme Lighter'):
|
||||||
|
return 'Light';
|
||||||
default:
|
default:
|
||||||
return color.replace(/Material Theme /gi, '');
|
return color.replace(/Material Theme /gi, '');
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
export const THEME_ICONS = () => {
|
export const THEME_ICONS = () => {
|
||||||
let deferred: any = {};
|
let deferred: any = {};
|
||||||
|
|
|
@ -785,6 +785,8 @@
|
||||||
"editorError.foreground": "{{variant.scheme.base.red}}70",
|
"editorError.foreground": "{{variant.scheme.base.red}}70",
|
||||||
"editorWarning.foreground": "{{variant.scheme.base.green}}70",
|
"editorWarning.foreground": "{{variant.scheme.base.green}}70",
|
||||||
"editorWidget.background": "{{variant.scheme.backgroundAlt}}",
|
"editorWidget.background": "{{variant.scheme.backgroundAlt}}",
|
||||||
|
"editor.findWidgetResizeBorder": "{{commons.accents.Teal}}",
|
||||||
|
"editorWidget.border": "{{variant.scheme.base.Teal}}",
|
||||||
"editorMarkerNavigation.background": "{{variant.scheme.foreground}}05",
|
"editorMarkerNavigation.background": "{{variant.scheme.foreground}}05",
|
||||||
"widget.shadow": "{{variant.scheme.shadow}}",
|
"widget.shadow": "{{variant.scheme.shadow}}",
|
||||||
"panel.border": "{{variant.scheme.contrastBorder}}60",
|
"panel.border": "{{variant.scheme.contrastBorder}}60",
|
||||||
|
|
Loading…
Reference in a new issue