mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Merge pull request #144759 from microsoft/aeschli/hcLightThemeKind
Add high contrast light theme kind
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user