feat: support isHighContrastColorScheme() on macOS (#19331)

* change docs

* use NativeTheme to check high contrast scheme
This commit is contained in:
Micha Hanselmann 2019-07-19 16:04:42 -07:00 committed by Shelley Vohr
parent 1edbd30987
commit dc30b86377
3 changed files with 2 additions and 25 deletions

View file

@ -39,11 +39,9 @@ bool SystemPreferences::IsInvertedColorScheme() {
return color_utils::IsInvertedColorScheme();
}
#if !defined(OS_WIN)
bool SystemPreferences::IsHighContrastColorScheme() {
return false;
return ui::NativeTheme::GetInstanceForNativeUi()->UsesHighContrastColors();
}
#endif // !defined(OS_WIN)
v8::Local<v8::Value> SystemPreferences::GetAnimationSettings(
v8::Isolate* isolate) {