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;
|
||||
Emit("inverted-color-scheme-changed", new_invertered_color_scheme);
|
||||
}
|
||||
Emit("color-changed");
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
|
|
@ -19,6 +19,12 @@ Returns:
|
|||
* `newColor` String - The new RGBA color the user assigned to be there system
|
||||
accent color.
|
||||
|
||||
### Event: 'color-changed' _Windows_
|
||||
|
||||
Returns:
|
||||
|
||||
* `event` Event
|
||||
|
||||
### Event: 'inverted-color-scheme-changed' _Windows_
|
||||
|
||||
Returns:
|
||||
|
|
Loading…
Reference in a new issue