1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

LibGUI: Add on_theme_change callback to Application

This allows an Application without a window to listen for theme changes.
This commit is contained in:
networkException 2022-06-16 14:16:31 +02:00 committed by Linus Groh
parent 84780f3ed5
commit 535e1c9152
3 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,7 @@ public:
Function<void(Action&)> on_action_enter;
Function<void(Action&)> on_action_leave;
Function<void()> on_theme_change;
auto const& global_shortcut_actions(Badge<GUI::CommandPalette>) const { return m_global_shortcut_actions; }