SystemColorTheme set to matchColorTheme doesn't work (#211250)

This commit is contained in:
Martin Aeschlimann 2024-04-24 15:09:43 +02:00 committed by GitHub
parent 4e3206f5a9
commit 070a36d688
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;