From 1df30821db4fc0202c155093c154a982366f9201 Mon Sep 17 00:00:00 2001 From: Vadim Macagon Date: Sun, 25 Sep 2016 01:45:34 +0700 Subject: [PATCH] Fix getAccentColor() docs in system-preferences.md Example was using a non-existent method. --- docs/api/system-preferences.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index 057b7aaff2e5..c5be0c5d73e8 100644 --- a/docs/api/system-preferences.md +++ b/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"