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

WindowServer+LibGUI: Add an IPC API to change the current system fonts

This patch adds a set_system_fonts() IPC API that takes the two main
font queries as parameters. We'll probably expand this with additional
queries when we figure out what they should be.

Note that changing the system fonts on a live system mostly takes
effect in newly launched programs. This is because GUI::Widget will
currently cache a pointer to the Gfx::FontDatabase::default_font()
when first constructed. This is something we'll have to fix somehow.

Also note that the settings are not yet persisted.
This commit is contained in:
Andreas Kling 2021-05-21 18:53:03 +02:00
parent bb23e61fbf
commit c778130d63
6 changed files with 39 additions and 8 deletions

View file

@ -182,6 +182,7 @@ public:
}
bool update_theme(String theme_path, String theme_name);
void invalidate_after_theme_or_font_change();
bool set_hovered_window(Window*);
void deliver_mouse_event(Window& window, MouseEvent& event, bool process_double_click);