From 253fcf881d04d0c86236e4cf0067f08eea39f051 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 24 Dec 2020 23:36:44 +0800 Subject: ... --- include/cru/ui/UiManager.hpp | 2 ++ include/cru/ui/style/StyleRuleSet.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/cru/ui/UiManager.hpp b/include/cru/ui/UiManager.hpp index e747fcd2..6c0d9500 100644 --- a/include/cru/ui/UiManager.hpp +++ b/include/cru/ui/UiManager.hpp @@ -16,6 +16,8 @@ struct ThemeResources { std::shared_ptr caret_brush; style::StyleRuleSet button_style; style::StyleRuleSet text_box_style; + + style::StyleRuleSet menu_item_style; }; class UiManager : public Object { diff --git a/include/cru/ui/style/StyleRuleSet.hpp b/include/cru/ui/style/StyleRuleSet.hpp index ba3f8b4c..e62dd2de 100644 --- a/include/cru/ui/style/StyleRuleSet.hpp +++ b/include/cru/ui/style/StyleRuleSet.hpp @@ -41,7 +41,7 @@ class StyleRuleSet : public Object { void Clear() { RemoveStyleRule(0, GetSize()); } - void Set(const StyleRuleSet& other); + void Set(const StyleRuleSet& other, bool set_parent = false); const StyleRule& operator[](gsl::index index) const { return rules_[index]; } -- cgit v1.2.3