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

@ -344,7 +344,7 @@ Returns one of several standard system colors that automatically adapt to vibran
Returns `Boolean` - `true` if an inverted color scheme (a high contrast color scheme with light text and dark backgrounds) is active, `false` otherwise.
### `systemPreferences.isHighContrastColorScheme()` _Windows_
### `systemPreferences.isHighContrastColorScheme()` _macOS_ _Windows_
Returns `Boolean` - `true` if a high contrast theme is active, `false` otherwise.