1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

WindowServer: Move window titles 1px to the right

This makes it look nicer with wide window icons.
This commit is contained in:
Andreas Kling 2020-07-04 19:21:57 +02:00
parent a5799ed462
commit b85a57ead7

View file

@ -174,9 +174,9 @@ Gfx::IntRect WindowFrame::title_bar_text_rect() const
auto titlebar_rect = title_bar_rect();
auto titlebar_icon_rect = title_bar_icon_rect();
return {
titlebar_rect.x() + 2 + titlebar_icon_rect.width() + 2,
titlebar_rect.x() + 3 + titlebar_icon_rect.width() + 2,
titlebar_rect.y(),
titlebar_rect.width() - 4 - titlebar_icon_rect.width() - 2,
titlebar_rect.width() - 5 - titlebar_icon_rect.width() - 2,
titlebar_rect.height()
};
}