mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WindowServer: Use WindowManager::window_title_font() in one place
If we use this everywhere, it may one day become possible to change the window title font.
This commit is contained in:
parent
0aef87b82c
commit
0d3d22f464
Notes:
sideshowbarker
2024-07-19 04:37:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0d3d22f4643
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ void WindowFrame::paint_normal_frame(Gfx::Painter& painter)
|
|||
auto titlebar_icon_rect = title_bar_icon_rect();
|
||||
auto titlebar_inner_rect = title_bar_text_rect();
|
||||
auto titlebar_title_rect = titlebar_inner_rect;
|
||||
titlebar_title_rect.set_width(Gfx::Font::default_bold_font().width(title_text));
|
||||
titlebar_title_rect.set_width(WindowManager::the().window_title_font().width(title_text));
|
||||
|
||||
auto [title_color, border_color, border_color2] = compute_frame_colors();
|
||||
|
||||
|
|
Loading…
Reference in a new issue