mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +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:
parent
bb23e61fbf
commit
c778130d63
6 changed files with 39 additions and 8 deletions
|
@ -104,6 +104,8 @@ endpoint WindowServer
|
|||
get_system_theme() => ([UTF8] String theme_name)
|
||||
refresh_system_theme() =|
|
||||
|
||||
set_system_fonts(String default_font_query, String fixed_width_font_query) => (bool success)
|
||||
|
||||
set_window_base_size_and_size_increment(i32 window_id, Gfx::IntSize base_size, Gfx::IntSize size_increment) =|
|
||||
set_window_resize_aspect_ratio(i32 window_id, Optional<Gfx::IntSize> resize_aspect_ratio) =|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue