diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-23 14:37:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 14:37:13 +0200 |
commit | f0cac83243037900f7981087fd91408c2f75bb79 (patch) | |
tree | f1a77f2242104e752a51649f9c18ddbe5105008c /Servers/WindowServer | |
parent | 9ab9f97464bb7cac1f40b5e033f69850210d248b (diff) | |
download | serenity-f0cac83243037900f7981087fd91408c2f75bb79.zip |
WindowServer+LibGfx: Make window borders 1px thicker
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/WindowFrame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Servers/WindowServer/WindowFrame.cpp b/Servers/WindowServer/WindowFrame.cpp index cb33949af5..03fa54e001 100644 --- a/Servers/WindowServer/WindowFrame.cpp +++ b/Servers/WindowServer/WindowFrame.cpp @@ -154,7 +154,7 @@ Gfx::Rect WindowFrame::title_bar_rect() const { if (m_window.type() == WindowType::Notification) return { m_window.width() + 3, 3, window_titlebar_height, m_window.height() }; - return { 3, 3, m_window.width(), window_titlebar_height }; + return { 4, 4, m_window.width(), window_titlebar_height }; } Gfx::Rect WindowFrame::title_bar_icon_rect() const @@ -282,10 +282,10 @@ static Gfx::Rect frame_rect_for_window(Window& window, const Gfx::Rect& rect) switch (type) { case WindowType::Normal: return { - rect.x() - 3, - rect.y() - window_titlebar_height - 4 + offset, - rect.width() + 6, - rect.height() + 7 + window_titlebar_height - offset + rect.x() - 4, + rect.y() - window_titlebar_height - 5 + offset, + rect.width() + 8, + rect.height() + 8 + window_titlebar_height - offset }; case WindowType::Notification: return { |