macOS: detect high contrast theme (fix #105481)

This commit is contained in:
Benjamin Pasero
2020-08-27 10:44:55 +02:00
parent 860a68747f
commit 21dd836ddb
5 changed files with 9 additions and 8 deletions

View File

@@ -778,7 +778,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
if (windowConfig?.autoDetectHighContrast === false) {
autoDetectHighContrast = false;
}
windowConfiguration.highContrast = isWindows && autoDetectHighContrast && nativeTheme.shouldUseInvertedColorScheme;
windowConfiguration.highContrast = (isWindows || isMacintosh) && autoDetectHighContrast && nativeTheme.shouldUseInvertedColorScheme;
windowConfiguration.accessibilitySupport = app.accessibilitySupportEnabled;
// Title style related