1
Fork 0
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:
Junior Rantila 2023-09-19 01:57:10 +02:00 committed by Andrew Kaster
parent a5b01689f1
commit 31ff752a10
4 changed files with 41 additions and 0 deletions

View file

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