Merge pull request #144759 from microsoft/aeschli/hcLightThemeKind

Add high contrast light theme kind
This commit is contained in:
Martin Aeschlimann
2022-03-16 16:41:22 +01:00
committed by GitHub
118 changed files with 1330 additions and 1117 deletions

View File

@@ -27,7 +27,14 @@ export class ExtHostTheming implements ExtHostThemingShape {
}
$onColorThemeChange(type: string): void {
let kind = type === 'light' ? ColorThemeKind.Light : type === 'dark' ? ColorThemeKind.Dark : ColorThemeKind.HighContrast;
let kind;
switch (type) {
case 'light': kind = ColorThemeKind.Light; break;
case 'hcDark': kind = ColorThemeKind.HighContrast; break;
case 'hcLight': kind = ColorThemeKind.HighContrastLight; break;
default:
kind = ColorThemeKind.Dark;
}
this._actual = new ColorTheme(kind);
this._onDidChangeActiveColorTheme.fire(this._actual);
}

View File

@@ -3068,7 +3068,8 @@ export class ColorTheme implements vscode.ColorTheme {
export enum ColorThemeKind {
Light = 1,
Dark = 2,
HighContrast = 3
HighContrast = 3,
HighContrastLight = 4
}
//#endregion Theming