feat: add mac support to systemPrefs.getAccentColor() (#16251)
* feat: add mac support to systemPrefs.getAccentColor() * note 10.14 retriction
This commit is contained in:
parent
5c378de22f
commit
439ba5116f
5 changed files with 32 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue