aboutsummaryrefslogtreecommitdiff
path: root/src/ui/components/Menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/components/Menu.cpp')
-rw-r--r--src/ui/components/Menu.cpp3
1 files changed, 2 insertions, 1 deletions
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 <functional>
#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_();
});