diff --git a/atom/browser/api/atom_api_system_preferences_win.cc b/atom/browser/api/atom_api_system_preferences_win.cc index 09410a658948..6156104665f0 100644 --- a/atom/browser/api/atom_api_system_preferences_win.cc +++ b/atom/browser/api/atom_api_system_preferences_win.cc @@ -169,6 +169,7 @@ void SystemPreferences::OnSysColorChange() { invertered_color_scheme_ = new_invertered_color_scheme; Emit("inverted-color-scheme-changed", new_invertered_color_scheme); } + Emit("color-changed"); } } // namespace api diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index 250d065d4bc2..75b4f7ae2b64 100644 --- a/docs/api/system-preferences.md +++ b/docs/api/system-preferences.md @@ -19,6 +19,12 @@ Returns: * `newColor` String - The new RGBA color the user assigned to be there system accent color. +### Event: 'color-changed' _Windows_ + +Returns: + +* `event` Event + ### Event: 'inverted-color-scheme-changed' _Windows_ Returns: