diff --git a/shell/browser/electron_browser_client.cc b/shell/browser/electron_browser_client.cc index 3c569a533fe6..849cb3525d6e 100644 --- a/shell/browser/electron_browser_client.cc +++ b/shell/browser/electron_browser_client.cc @@ -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