Browse Source

Merge pull request #7338 from electron/fix-get-accent-color-docs

Fix getAccentColor() docs in system-preferences.md
Cheng Zhao 8 years ago
parent
commit
1dd05ff520
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/system-preferences.md

+ 2 - 2
docs/api/system-preferences.md

@@ -138,13 +138,13 @@ if (browserOptions.transparent) {
 
 [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
 hexadecimal string.
 
 ```js
-const color = app.getSystemAccentColor() // `"aabbccdd"`
+const color = systemPreferences.getAccentColor() // `"aabbccdd"`
 const red = color.substr(0, 2) // "aa"
 const green = color.substr(2, 2) // "bb"
 const blue = color.substr(4, 2) // "cc"