summaryrefslogtreecommitdiff
path: root/Services/WindowServer/WindowFrame.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-04 19:21:57 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-04 19:21:57 +0200
commitb85a57ead7871fd047bdf7205d0cc856569f1f5b (patch)
treef197f54bf4016b601d8fa1e441add9f76235c598 /Services/WindowServer/WindowFrame.cpp
parenta5799ed46229211c056138bea685fb70c4449d9e (diff)
downloadserenity-b85a57ead7871fd047bdf7205d0cc856569f1f5b.zip
WindowServer: Move window titles 1px to the right
This makes it look nicer with wide window icons.
Diffstat (limited to 'Services/WindowServer/WindowFrame.cpp')
-rw-r--r--Services/WindowServer/WindowFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Services/WindowServer/WindowFrame.cpp b/Services/WindowServer/WindowFrame.cpp
index 0c815ac781..3a69f78e73 100644
--- a/Services/WindowServer/WindowFrame.cpp
+++ b/Services/WindowServer/WindowFrame.cpp
@@ -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()
};
}