feat: add mac support to systemPrefs.getAccentColor() (#16251)

* feat: add mac support to systemPrefs.getAccentColor()

* note 10.14 retriction
This commit is contained in:
Shelley Vohr 2019-01-03 13:24:55 -08:00 committed by GitHub
parent 5c378de22f
commit 439ba5116f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 3 deletions

View file

@ -227,7 +227,7 @@ if (browserOptions.transparent) {
[dwm-composition]:https://msdn.microsoft.com/en-us/library/windows/desktop/aa969540.aspx
### `systemPreferences.getAccentColor()` _Windows_
### `systemPreferences.getAccentColor()` _Windows_ _macOS_
Returns `String` - The users current system wide accent color preference in RGBA
hexadecimal form.
@ -240,6 +240,8 @@ const blue = color.substr(4, 2) // "cc"
const alpha = color.substr(6, 2) // "dd"
```
This API is only available on macOS 10.14 Mojave or newer.
### `systemPreferences.getColor(color)` _Windows_
* `color` String - One of the following values: