Skip to content

Commit 179883d

Browse files
authored
A11y bug: OS color settings are not respected (microsoft#155319)
A11y bug: OS color settings are not respected. Fixes microsoft#155243
1 parent 8630720 commit 179883d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/platform/theme/electron-main/themeMainService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ export class ThemeMainService extends Disposable implements IThemeMainService {
6464
} else if (isMacintosh) {
6565
// high contrast is set if one of shouldUseInvertedColorScheme or shouldUseHighContrastColors is set, reflecting the 'Invert colours' and `Increase contrast` settings in MacOS
6666
if (nativeTheme.shouldUseInvertedColorScheme || nativeTheme.shouldUseHighContrastColors) {
67-
// when the colors are inverted, negate shouldUseDarkColors
68-
return { dark: nativeTheme.shouldUseDarkColors !== nativeTheme.shouldUseInvertedColorScheme, highContrast: true };
67+
return { dark: nativeTheme.shouldUseDarkColors, highContrast: true };
6968
}
7069
} else if (isLinux) {
7170
// ubuntu gnome seems to have 3 states, light dark and high contrast

0 commit comments

Comments
 (0)