summaryrefslogtreecommitdiff
path: root/LibGUI/GToolBar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-28 17:32:38 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-28 17:32:38 +0100
commitc7ab643883b5b2fbadd799e84ed9e79fdeafb9e6 (patch)
treeeec552685be7e999ab9471d7d835a6d9c9101ea8 /LibGUI/GToolBar.cpp
parentd12b6b867760fc9faa366d765aade072eaa4a8dc (diff)
downloadserenity-c7ab643883b5b2fbadd799e84ed9e79fdeafb9e6.zip
Move LibGUI/GStyle to SharedGraphics/StylePainter.
I want to paint some buttons in WindowServer where we don't have LibGUI.
Diffstat (limited to 'LibGUI/GToolBar.cpp')
-rw-r--r--LibGUI/GToolBar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGUI/GToolBar.cpp b/LibGUI/GToolBar.cpp
index 93559b8a42..3acc17108d 100644
--- a/LibGUI/GToolBar.cpp
+++ b/LibGUI/GToolBar.cpp
@@ -34,7 +34,7 @@ void GToolBar::add_action(Retained<GAction>&& action)
raw_action_ptr->activate();
};
- button->set_button_style(GButtonStyle::CoolBar);
+ button->set_button_style(ButtonStyle::CoolBar);
button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
ASSERT(button->size_policy(Orientation::Horizontal) == SizePolicy::Fixed);
ASSERT(button->size_policy(Orientation::Vertical) == SizePolicy::Fixed);
@@ -79,5 +79,5 @@ void GToolBar::paint_event(GPaintEvent& event)
{
GPainter painter(*this);
painter.set_clip_rect(event.rect());
- GStyle::the().paint_surface(painter, rect());
+ StylePainter::the().paint_surface(painter, rect());
}