mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 11:11:51 +00:00
LibWeb: Handle theme change event in OutOfProcessWebView
This commit is contained in:
parent
870dd44ba9
commit
e6709e3834
Notes:
sideshowbarker
2024-07-19 01:57:46 +09:00
Author: https://github.com/linusg
Commit: e6709e3834
Pull-request: https://github.com/SerenityOS/serenity/pull/3727
2 changed files with 8 additions and 0 deletions
|
@ -113,6 +113,13 @@ void OutOfProcessWebView::mousemove_event(GUI::MouseEvent& event)
|
|||
client().post_message(Messages::WebContentServer::MouseMove(to_content_position(event.position()), event.button(), event.buttons(), event.modifiers()));
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::theme_change_event(GUI::ThemeChangeEvent& event)
|
||||
{
|
||||
GUI::ScrollableWidget::theme_change_event(event);
|
||||
client().post_message(Messages::WebContentServer::UpdateSystemTheme(Gfx::current_system_theme_buffer_id()));
|
||||
request_repaint();
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::notify_server_did_paint(Badge<WebContentClient>, i32 shbuf_id)
|
||||
{
|
||||
if (m_back_bitmap->shbuf_id() == shbuf_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue