diff options
Diffstat (limited to 'src/ui/controls/Button.cpp')
-rw-r--r-- | src/ui/controls/Button.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/controls/Button.cpp b/src/ui/controls/Button.cpp index 0f122650..887bcae6 100644 --- a/src/ui/controls/Button.cpp +++ b/src/ui/controls/Button.cpp @@ -4,6 +4,7 @@ #include "cru/platform/graphics/Brush.hpp" #include "cru/platform/gui/Cursor.hpp" #include "cru/platform/gui/UiApplication.hpp" +#include "cru/ui/ThemeManager.hpp" #include "cru/ui/UiManager.hpp" #include "cru/ui/helper/ClickDetector.hpp" #include "cru/ui/render/BorderRenderObject.hpp" @@ -16,8 +17,8 @@ Button::Button() : click_detector_(this) { render_object_->SetBorderEnabled(true); auto default_button_style = - UiManager::GetInstance()->GetThemeResources()->button_style.get(); - GetStyleRuleSet()->SetParent(default_button_style); + ThemeManager::GetInstance()->GetResourceStyleRuleSet(u"button.style"); + GetStyleRuleSet()->SetParent(std::move(default_button_style)); } Button::~Button() = default; |