mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
Ladybird/AppKit: Update chrome color on theme color change
This commit is contained in:
parent
a5b01689f1
commit
31ff752a10
4 changed files with 41 additions and 0 deletions
|
@ -615,6 +615,14 @@ struct HideCursor {
|
|||
url:url
|
||||
activateTab:Web::HTML::ActivateTab::Yes];
|
||||
};
|
||||
|
||||
m_web_view_bridge->on_theme_color_change = [self](auto color) {
|
||||
self.backgroundColor = [NSColor colorWithRed:(color.red() / 255.0)
|
||||
green:(color.green() / 255.0)
|
||||
blue:(color.blue() / 255.0)
|
||||
alpha:1.0];
|
||||
[self.observer onThemeColorChange:color];
|
||||
};
|
||||
}
|
||||
|
||||
- (void)colorPickerClosed:(NSNotification*)notification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue