summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2021-02-25 12:56:47 -0500
committerAndreas Kling <kling@serenityos.org>2021-02-25 19:23:12 +0100
commit0c4fbcae7679a68869350501fd0de132c020cf8c (patch)
tree7895455ab628c16d2853869acab0a4b5ce99ec21
parent6cdb6574935a1f576542ddb3c4a4e73650f1b54a (diff)
downloadserenity-0c4fbcae7679a68869350501fd0de132c020cf8c.zip
LibGUI: Paint all widgets as toolbars in ToolBarContainer
Fixes missing shadow and highlight threeds for Bookmark bar
-rw-r--r--Userland/Libraries/LibGUI/ToolBarContainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/ToolBarContainer.cpp b/Userland/Libraries/LibGUI/ToolBarContainer.cpp
index d2f6b5252c..140a442343 100644
--- a/Userland/Libraries/LibGUI/ToolBarContainer.cpp
+++ b/Userland/Libraries/LibGUI/ToolBarContainer.cpp
@@ -55,9 +55,9 @@ void ToolBarContainer::paint_event(GUI::PaintEvent& event)
Painter painter(*this);
painter.add_clip_rect(event.rect());
- for_each_child_of_type<ToolBar>([&](auto& toolbar) {
- if (toolbar.is_visible()) {
- auto rect = toolbar.relative_rect();
+ for_each_child_widget([&](auto& widget) {
+ if (widget.is_visible()) {
+ auto rect = widget.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());
}