diff options
author | crupest <crupest@outlook.com> | 2020-12-24 23:36:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-24 23:36:44 +0800 |
commit | 253fcf881d04d0c86236e4cf0067f08eea39f051 (patch) | |
tree | 489eeac466f92474b3d51c49a164607fdabcf478 /include | |
parent | 04e3fee3fc584c2c7562b29c375cedcf020bcbc6 (diff) | |
download | cru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.gz cru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.bz2 cru-253fcf881d04d0c86236e4cf0067f08eea39f051.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/ui/UiManager.hpp | 2 | ||||
-rw-r--r-- | include/cru/ui/style/StyleRuleSet.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
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<platform::graphics::IBrush> 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]; } |