diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-03 19:43:25 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-03 19:43:25 +0200 |
commit | 3b2120e7b6392f784688751665de34f5cf800fef (patch) | |
tree | 8ecaad78ad55ffa11740723ea7387eaad5609888 /Libraries | |
parent | 9f00afd8cdf68d5ed308dfafda71009a99690007 (diff) | |
download | serenity-3b2120e7b6392f784688751665de34f5cf800fef.zip |
LibGUI: Don't paint borders for invisible bars in ToolBarContainer
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/ToolBarContainer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ToolBarContainer.cpp b/Libraries/LibGUI/ToolBarContainer.cpp index ce961b38e1..3bb3410024 100644 --- a/Libraries/LibGUI/ToolBarContainer.cpp +++ b/Libraries/LibGUI/ToolBarContainer.cpp @@ -111,6 +111,8 @@ void ToolBarContainer::paint_event(GUI::PaintEvent& event) painter.add_clip_rect(event.rect()); for (auto& toolbar : m_toolbars) { + if (!toolbar.is_visible()) + continue; auto rect = toolbar.relative_rect(); painter.draw_line(rect.top_left().translated(0, -1), rect.top_right().translated(0, -1), palette().threed_highlight()); painter.draw_line(rect.bottom_left().translated(0, 1), rect.bottom_right().translated(0, 1), palette().threed_shadow1()); |