From 737a4d237703abc2b954ced3aa96a0f9bc7f02ca Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Feb 2019 19:31:37 +0100 Subject: [PATCH] LibGUI: Both GToolBar and GStatusBar should have highlight/shadow. --- LibGUI/GStatusBar.cpp | 1 + LibGUI/GToolBar.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/LibGUI/GStatusBar.cpp b/LibGUI/GStatusBar.cpp index d8b4970a1c..2ec4039296 100644 --- a/LibGUI/GStatusBar.cpp +++ b/LibGUI/GStatusBar.cpp @@ -34,4 +34,5 @@ void GStatusBar::paint_event(GPaintEvent& event) painter.set_clip_rect(event.rect()); painter.fill_rect({ 0, 1, width(), height() - 1 }, Color::LightGray); painter.draw_line({ 0, 0 }, { width() - 1, 0 }, Color::White); + painter.draw_line({ 0, rect().bottom() }, { width() - 1, rect().bottom() }, Color::DarkGray); } diff --git a/LibGUI/GToolBar.cpp b/LibGUI/GToolBar.cpp index a9d7e4cf65..8e30c44e53 100644 --- a/LibGUI/GToolBar.cpp +++ b/LibGUI/GToolBar.cpp @@ -53,5 +53,6 @@ void GToolBar::paint_event(GPaintEvent& event) Painter painter(*this); painter.set_clip_rect(event.rect()); painter.fill_rect({ 0, 0, width(), height() - 1 }, Color::LightGray); + painter.draw_line({ 0, 0 }, { width() - 1, 0 }, Color::White); painter.draw_line({ 0, rect().bottom() }, { width() - 1, rect().bottom() }, Color::DarkGray); }