feat: support isHighContrastColorScheme()
on macOS (#19331)
* change docs * use NativeTheme to check high contrast scheme
This commit is contained in:
parent
1edbd30987
commit
dc30b86377
3 changed files with 2 additions and 25 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue