From 560c0ead613658a2b7444907c3d1d69e49be8c32 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 27 Jan 2022 21:21:51 +0800 Subject: ... --- src/ui/components/Menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/components/Menu.cpp') diff --git a/src/ui/components/Menu.cpp b/src/ui/components/Menu.cpp index 05324865..7405b23c 100644 --- a/src/ui/components/Menu.cpp +++ b/src/ui/components/Menu.cpp @@ -1,6 +1,7 @@ #include "cru/ui/components/Menu.hpp" #include #include "cru/platform/gui/Window.hpp" +#include "cru/ui/ThemeManager.hpp" #include "cru/ui/UiManager.hpp" #include "cru/ui/controls/Button.hpp" #include "cru/ui/controls/Control.hpp" @@ -16,7 +17,7 @@ MenuItem::MenuItem() { text_ = controls::TextBlock::Create(); container_->SetChild(text_); container_->GetStyleRuleSet()->SetParent( - &UiManager::GetInstance()->GetThemeResources()->menu_item_style); + ThemeManager::GetInstance()->GetResourceStyleRuleSet(u"menuitem.style")); container_->ClickEvent()->AddHandler([this](const helper::ClickEventArgs&) { if (this->on_click_) this->on_click_(); }); -- cgit v1.2.3