diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-11 02:59:40 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-11 02:59:40 +0200 |
commit | af070324db996f661be80c7bf1f5263991121ee0 (patch) | |
tree | 82112db49eddd856e6a35ff8c1b59825d6a5f1c6 /Servers/WindowServer/WSWindowFrame.cpp | |
parent | ead6524c0afa342ac5e47420a86047e2c003eba9 (diff) | |
download | serenity-af070324db996f661be80c7bf1f5263991121ee0.zip |
WindowServer: Tweak window title positioning.
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindowFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp index b782082937..bdaf9996d4 100644 --- a/Servers/WindowServer/WSWindowFrame.cpp +++ b/Servers/WindowServer/WSWindowFrame.cpp @@ -178,7 +178,8 @@ void WSWindowFrame::paint(Painter& painter) painter.draw_rect(outer_rect, border_color); painter.draw_rect(inner_border_rect, border_color); - painter.draw_text(titlebar_title_rect, window.title(), wm.window_title_font(), TextAlignment::CenterLeft, title_color); + // FIXME: The translated(0, 1) wouldn't be necessary if we could center text based on its baseline. + painter.draw_text(titlebar_title_rect.translated(0, 1), window.title(), wm.window_title_font(), TextAlignment::CenterLeft, title_color); painter.blit(titlebar_icon_rect.location(), window.icon(), window.icon().rect()); |