Emit color-changed event on Windows
This commit is contained in:
parent
2656812dea
commit
c8189046fe
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue