diff options
author | Oriko <oriko1010@protonmail.com> | 2020-03-16 13:36:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-16 13:39:34 +0100 |
commit | 2a32330257b96922d9ed274baf6fc96abca957f0 (patch) | |
tree | 4eba5f05e4729305d56c4ca383c24127cf6c038b /Libraries/LibGUI/Widget.cpp | |
parent | 2b162ef79459d4b4961c25809ef98da4ca5cefd5 (diff) | |
download | serenity-2a32330257b96922d9ed274baf6fc96abca957f0.zip |
LibGUI: Add a ThemeChange event
Diffstat (limited to 'Libraries/LibGUI/Widget.cpp')
-rw-r--r-- | Libraries/LibGUI/Widget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Widget.cpp b/Libraries/LibGUI/Widget.cpp index 7e5d719633..0f9036fd69 100644 --- a/Libraries/LibGUI/Widget.cpp +++ b/Libraries/LibGUI/Widget.cpp @@ -206,6 +206,8 @@ void Widget::event(Core::Event& event) return drag_move_event(static_cast<DragEvent&>(event)); case Event::Drop: return drop_event(static_cast<DropEvent&>(event)); + case Event::ThemeChange: + return theme_change_event(static_cast<ThemeChangeEvent&>(event)); case Event::Enter: return handle_enter_event(event); case Event::Leave: @@ -417,6 +419,10 @@ void Widget::drop_event(DropEvent& event) event.ignore(); } +void Widget::theme_change_event(ThemeChangeEvent&) +{ +} + void Widget::update() { if (rect().is_empty()) |