mirror of
https://github.com/Tyriar/vscode-theme-generator.git
synced 2025-12-07 09:36:11 -08:00
Allow theme override keys
This commit is contained in:
@@ -74,5 +74,6 @@ export interface IColorSet {
|
||||
brightMagenta?: string;
|
||||
brightCyan?: string;
|
||||
brightWhite?: string;
|
||||
}
|
||||
},
|
||||
overrides?: { [key: string]: string }
|
||||
}
|
||||
|
||||
@@ -307,7 +307,13 @@ export class VscodeThemeGenerator implements IThemeGenerator {
|
||||
// debugToolBar.background: Debug toolbar background color.
|
||||
theme.colors['debugToolBar.background'] = background4;
|
||||
|
||||
// v1.13 colors
|
||||
theme.colors['selection.background'] = colorSet.base.color1;
|
||||
|
||||
if (colorSet.overrides) {
|
||||
const keys = Object.keys(colorSet.overrides);
|
||||
keys.forEach(key => {
|
||||
theme.colors[key] = colorSet.overrides[key];
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user