Skip to content

Commit 0829c74

Browse files
committed
1 parent e368703 commit 0829c74

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

shell/browser/api/electron_api_native_theme.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ bool NativeTheme::ShouldUseDarkColorsForSystemIntegratedUI() {
9393
}
9494

9595
bool NativeTheme::InForcedColorsMode() {
96-
return ui_theme_->forced_colors();
96+
return ui_theme_->forced_colors() !=
97+
ui::ColorProviderKey::ForcedColors::kNone;
9798
}
9899

99100
bool NativeTheme::GetPrefersReducedTransparency() {
@@ -116,7 +117,8 @@ bool NativeTheme::ShouldUseInvertedColorScheme() {
116117
return false;
117118
return is_inverted;
118119
#else
119-
return ui_theme_->forced_colors() &&
120+
return ui_theme_->forced_colors() !=
121+
ui::ColorProviderKey::ForcedColors::kNone &&
120122
ui_theme_->preferred_color_scheme() ==
121123
ui::NativeTheme::PreferredColorScheme::kDark;
122124
#endif

0 commit comments

Comments
 (0)