зеркало из https://github.com/electron/electron.git
Doc inverted-color-scheme-changed event
This commit is contained in:
Родитель
8b16b82ce9
Коммит
af27c62b07
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,13 @@ Returns:
|
|||
* `newColor` String - The new RGBA color the user assigned to be there system
|
||||
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче