Fix getAccentColor() docs in system-preferences.md

Example was using a non-existent method.
This commit is contained in:
Vadim Macagon 2016-09-25 01:45:34 +07:00 committed by GitHub
parent bf88fe32fd
commit 1df30821db

View file

@ -138,13 +138,13 @@ if (browserOptions.transparent) {
[dwm-composition]:https://msdn.microsoft.com/en-us/library/windows/desktop/aa969540.aspx [dwm-composition]:https://msdn.microsoft.com/en-us/library/windows/desktop/aa969540.aspx
### `SystemPreferences.getAccentColor()` _Windows_ ### `systemPreferences.getAccentColor()` _Windows_
Returns the users current system wide color preference in the form of an RGBA Returns the users current system wide color preference in the form of an RGBA
hexadecimal string. hexadecimal string.
```js ```js
const color = app.getSystemAccentColor() // `"aabbccdd"` const color = systemPreferences.getAccentColor() // `"aabbccdd"`
const red = color.substr(0, 2) // "aa" const red = color.substr(0, 2) // "aa"
const green = color.substr(2, 2) // "bb" const green = color.substr(2, 2) // "bb"
const blue = color.substr(4, 2) // "cc" const blue = color.substr(4, 2) // "cc"