feat: add nativeTheme.inForcedColorsMode (#32956)

This commit is contained in:
Milan Burda 2022-03-21 10:30:02 +01:00 committed by GitHub
parent 4cc2ed842e
commit 755feb4d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 1 deletions

View file

@ -46,6 +46,7 @@ class NativeTheme : public gin::Wrappable<NativeTheme>,
bool ShouldUseDarkColors();
bool ShouldUseHighContrastColors();
bool ShouldUseInvertedColorScheme();
bool InForcedColorsMode();
// ui::NativeThemeObserver:
void OnNativeThemeUpdated(ui::NativeTheme* theme) override;