mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Userland+Base: Make the window titlebar font configurable separately
Instead of defaulting to "bold variant of the system default font", let's allow the user to set any font they want as the titlebar font.
This commit is contained in:
parent
419e986dcc
commit
548081ea23
Notes:
sideshowbarker
2024-07-17 08:28:54 +09:00
Author: https://github.com/awesomekling
Commit: 548081ea23
20 changed files with 107 additions and 21 deletions
|
@ -47,9 +47,11 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
|
||||
auto default_font_query = wm_config->read_entry("Fonts", "Default", "Katica 10 400 0");
|
||||
auto fixed_width_font_query = wm_config->read_entry("Fonts", "FixedWidth", "Csilla 10 400 0");
|
||||
auto window_title_font_query = wm_config->read_entry("Fonts", "WindowTitle", "Katica 10 700 0");
|
||||
|
||||
Gfx::FontDatabase::set_default_font_query(default_font_query);
|
||||
Gfx::FontDatabase::set_fixed_width_font_query(fixed_width_font_query);
|
||||
Gfx::FontDatabase::set_window_title_font_query(window_title_font_query);
|
||||
|
||||
{
|
||||
// FIXME: Map switched tty from screens.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue