mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: support isHighContrastColorScheme() on macOS (#19331)
* change docs * use NativeTheme to check high contrast scheme
This commit is contained in:
committed by
Shelley Vohr
parent
1edbd30987
commit
dc30b86377
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user