mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
WindowServer: Store system font queries in WindowServer.ini :^)
Changes to the system font settings are now persisted in /etc. Note that you still need to restart the system for changes to fully apply in all programs.
This commit is contained in:
parent
8ac0d4abe1
commit
59fd1f40ce
3 changed files with 13 additions and 2 deletions
|
@ -62,8 +62,11 @@ int main(int, char**)
|
|||
Gfx::set_system_theme(theme);
|
||||
auto palette = Gfx::PaletteImpl::create_with_anonymous_buffer(theme);
|
||||
|
||||
Gfx::FontDatabase::set_default_font_query("Katica 10 400");
|
||||
Gfx::FontDatabase::set_fixed_width_font_query("Csilla 10 400");
|
||||
auto default_font_query = wm_config->read_entry("Fonts", "Default", "Katica 10 400");
|
||||
auto fixed_width_font_query = wm_config->read_entry("Fonts", "FixedWidth", "Csilla 10 400");
|
||||
|
||||
Gfx::FontDatabase::set_default_font_query(default_font_query);
|
||||
Gfx::FontDatabase::set_fixed_width_font_query(fixed_width_font_query);
|
||||
|
||||
WindowServer::EventLoop loop;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue