Doc inverted-color-scheme-changed event

This commit is contained in:
Kevin Sawicki 2016-10-07 09:55:50 -07:00
parent 8b16b82ce9
commit af27c62b07
2 changed files with 9 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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