mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
SystemColorTheme set to matchColorTheme doesn't work (#211250)
This commit is contained in:
parent
4e3206f5a9
commit
070a36d688
|
@ -63,14 +63,14 @@ export class ThemeMainService extends Disposable implements IThemeMainService {
|
|||
}
|
||||
|
||||
private updateSystemColorTheme(): void {
|
||||
switch (this.configurationService.getValue<'default' | 'auto' | 'light' | 'dark'>(SYSTEM_COLOR_THEME)) {
|
||||
switch (this.configurationService.getValue<'default' | 'matchColorTheme' | 'light' | 'dark'>(SYSTEM_COLOR_THEME)) {
|
||||
case 'dark':
|
||||
nativeTheme.themeSource = 'dark';
|
||||
break;
|
||||
case 'light':
|
||||
nativeTheme.themeSource = 'light';
|
||||
break;
|
||||
case 'auto':
|
||||
case 'matchColorTheme':
|
||||
switch (this.getBaseTheme()) {
|
||||
case 'vs': nativeTheme.themeSource = 'light'; break;
|
||||
case 'vs-dark': nativeTheme.themeSource = 'dark'; break;
|
||||
|
|
Loading…
Reference in a new issue