diff --git a/atom/browser/api/atom_api_system_preferences_win.cc b/atom/browser/api/atom_api_system_preferences_win.cc index 8772219a31..1ba81550f9 100644 --- a/atom/browser/api/atom_api_system_preferences_win.cc +++ b/atom/browser/api/atom_api_system_preferences_win.cc @@ -110,8 +110,8 @@ LRESULT CALLBACK SystemPreferences::WndProc(HWND hwnd, void SystemPreferences::OnColorChanged() { bool new_invertered_color_scheme = IsInvertedColorScheme(); if (new_invertered_color_scheme != invertered_color_scheme_) { - Emit("inverted-color-scheme-changed", new_invertered_color_scheme); invertered_color_scheme_ = new_invertered_color_scheme; + Emit("inverted-color-scheme-changed", new_invertered_color_scheme); } } diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index e39efac69f..98fe63634b 100644 --- a/docs/api/system-preferences.md +++ b/docs/api/system-preferences.md @@ -17,8 +17,15 @@ Returns: * `event` Event * `newColor` String - The new RGBA color the user assigned to be there system -accent color. + accent color. +### Event: 'inverted-color-scheme-changed' _Windows_ + +Returns: + +* `event` Event +* `invertedColorScheme` Boolean - `true` if a inverted color scheme, such as + a high contrast theme, is being used, `false` otherwise. ## Methods