Emit color-changed event on Windows

This commit is contained in:
Kevin Sawicki 2016-10-11 09:35:14 -07:00
parent 2656812dea
commit c8189046fe
2 changed files with 7 additions and 0 deletions

View file

@ -169,6 +169,7 @@ void SystemPreferences::OnSysColorChange() {
invertered_color_scheme_ = new_invertered_color_scheme; invertered_color_scheme_ = new_invertered_color_scheme;
Emit("inverted-color-scheme-changed", new_invertered_color_scheme); Emit("inverted-color-scheme-changed", new_invertered_color_scheme);
} }
Emit("color-changed");
} }
} // namespace api } // namespace api

View file

@ -19,6 +19,12 @@ Returns:
* `newColor` String - The new RGBA color the user assigned to be there system * `newColor` String - The new RGBA color the user assigned to be there system
accent color. accent color.
### Event: 'color-changed' _Windows_
Returns:
* `event` Event
### Event: 'inverted-color-scheme-changed' _Windows_ ### Event: 'inverted-color-scheme-changed' _Windows_
Returns: Returns: