зеркало из https://github.com/electron/electron.git
fix: High Contrast mode not working on Windows (#42853)
Closes https://github.com/electron/electron/issues/42609 Refs https://chromium-review.googlesource.com/c/chromium/src/+/5324688 Refs https://chromium-review.googlesource.com/c/chromium/src/+/5368321
This commit is contained in:
Родитель
f9d94211bb
Коммит
fa6ce4f0f8
|
@ -424,6 +424,7 @@ void ElectronBrowserClient::OverrideWebkitPrefs(
|
|||
renderer_prefs->can_accept_load_drops = false;
|
||||
|
||||
ui::NativeTheme* native_theme = ui::NativeTheme::GetInstanceForNativeUi();
|
||||
prefs->in_forced_colors = native_theme->InForcedColorsMode();
|
||||
prefs->preferred_color_scheme =
|
||||
native_theme->ShouldUseDarkColors()
|
||||
? blink::mojom::PreferredColorScheme::kDark
|
||||
|
|
Загрузка…
Ссылка в новой задаче