This commit is contained in:
Samuel Maddock
2025-10-09 00:01:17 -04:00
parent e368703f24
commit 0829c74b2f

View File

@@ -93,7 +93,8 @@ bool NativeTheme::ShouldUseDarkColorsForSystemIntegratedUI() {
}
bool NativeTheme::InForcedColorsMode() {
return ui_theme_->forced_colors();
return ui_theme_->forced_colors() !=
ui::ColorProviderKey::ForcedColors::kNone;
}
bool NativeTheme::GetPrefersReducedTransparency() {
@@ -116,7 +117,8 @@ bool NativeTheme::ShouldUseInvertedColorScheme() {
return false;
return is_inverted;
#else
return ui_theme_->forced_colors() &&
return ui_theme_->forced_colors() !=
ui::ColorProviderKey::ForcedColors::kNone &&
ui_theme_->preferred_color_scheme() ==
ui::NativeTheme::PreferredColorScheme::kDark;
#endif