diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-23 17:47:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 17:54:57 +0200 |
commit | 5eb4d0f832f87767c9740505c3bc2e7841f07fb6 (patch) | |
tree | c9f54157a3ea8af7447b32bba77b90a3d2e56346 | |
parent | ab336e895f1a56b43098d115195ab5747a6846d2 (diff) | |
download | serenity-5eb4d0f832f87767c9740505c3bc2e7841f07fb6.zip |
WindowServer: Make vertical segment under title bar 1px thicker
-rw-r--r-- | Servers/WindowServer/WindowFrame.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Servers/WindowServer/WindowFrame.cpp b/Servers/WindowServer/WindowFrame.cpp index aad034786d..bc02a42091 100644 --- a/Servers/WindowServer/WindowFrame.cpp +++ b/Servers/WindowServer/WindowFrame.cpp @@ -233,6 +233,7 @@ void WindowFrame::paint_normal_frame(Gfx::Painter& painter) auto& wm = WindowManager::the(); painter.draw_line(titlebar_rect.bottom_left().translated(0, 1), titlebar_rect.bottom_right().translated(0, 1), palette.button()); + painter.draw_line(titlebar_rect.bottom_left().translated(0, 2), titlebar_rect.bottom_right().translated(0, 2), palette.button()); auto leftmost_button_rect = m_buttons.is_empty() ? Gfx::Rect() : m_buttons.last().relative_rect(); @@ -283,9 +284,9 @@ static Gfx::Rect frame_rect_for_window(Window& window, const Gfx::Rect& rect) case WindowType::Normal: return { rect.x() - 4, - rect.y() - window_titlebar_height - 5 + offset, + rect.y() - window_titlebar_height - 6 + offset, rect.width() + 8, - rect.height() + 9 + window_titlebar_height - offset + rect.height() + 10 + window_titlebar_height - offset }; case WindowType::Notification: return { |