From f2058a39bfb86e8931998f4445ff770d056afebb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 10 May 2020 20:13:21 +0200 Subject: [PATCH] WindowServer: Shade the bottom of the menu bar like a button This adds a row of secondary (darker) shade to the menubar, giving it a more buttonish look to match the highlight added to the Taskbar. :^) --- Services/WindowServer/MenuManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Services/WindowServer/MenuManager.cpp b/Services/WindowServer/MenuManager.cpp index 8b094a69e5..31211edb69 100644 --- a/Services/WindowServer/MenuManager.cpp +++ b/Services/WindowServer/MenuManager.cpp @@ -94,7 +94,8 @@ void MenuManager::draw() Gfx::Painter painter(*window().backing_store()); painter.fill_rect(menubar_rect, palette.window()); - painter.draw_line({ 0, menubar_rect.bottom() }, { menubar_rect.right(), menubar_rect.bottom() }, palette.threed_shadow1()); + painter.draw_line({ 0, menubar_rect.bottom() - 1 }, { menubar_rect.right(), menubar_rect.bottom() - 1 }, palette.threed_shadow1()); + painter.draw_line({ 0, menubar_rect.bottom() }, { menubar_rect.right(), menubar_rect.bottom() }, palette.threed_shadow2()); for_each_active_menubar_menu([&](Menu& menu) { Color text_color = palette.window_text(); @@ -420,7 +421,7 @@ void MenuManager::close_bar() Gfx::Rect MenuManager::menubar_rect() const { - return { 0, 0, Screen::the().rect().width(), 18 }; + return { 0, 0, Screen::the().rect().width(), 19 }; } void MenuManager::set_current_menubar(MenuBar* menubar)