mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 20:17:34 +00:00
WindowServer: Use the right font for computing titlebar text rects.
This commit is contained in:
parent
e56fe71dbc
commit
5773b91a04
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window)
|
|||
auto close_button_rect = close_button_rect_for_window(window.rect());
|
||||
|
||||
auto titlebar_title_rect = titlebar_inner_rect;
|
||||
titlebar_title_rect.set_width(font().width(window.title()));
|
||||
titlebar_title_rect.set_width(Font::default_bold_font().width(window.title()));
|
||||
|
||||
Rect inner_border_rect {
|
||||
window.x() - 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue