Doc inverted-color-scheme-changed event

This commit is contained in:
Kevin Sawicki 2016-10-07 09:55:50 -07:00
Родитель 8b16b82ce9
Коммит af27c62b07
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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