diff options
author | crupest <crupest@outlook.com> | 2022-01-24 22:14:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-24 22:14:37 +0800 |
commit | 24e1dc8723aea1e46a3aa15794747f3fa52f8eca (patch) | |
tree | 0c879b38647307d25325eb8f9993a7f690fb46b2 /include/cru/ui/UiManager.hpp | |
parent | 72402c09d45b696cd58a65b4a141a804e1cd9371 (diff) | |
download | cru-24e1dc8723aea1e46a3aa15794747f3fa52f8eca.tar.gz cru-24e1dc8723aea1e46a3aa15794747f3fa52f8eca.tar.bz2 cru-24e1dc8723aea1e46a3aa15794747f3fa52f8eca.zip |
...
Diffstat (limited to 'include/cru/ui/UiManager.hpp')
-rw-r--r-- | include/cru/ui/UiManager.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cru/ui/UiManager.hpp b/include/cru/ui/UiManager.hpp index 4a2a7a77..d16adc4f 100644 --- a/include/cru/ui/UiManager.hpp +++ b/include/cru/ui/UiManager.hpp @@ -19,9 +19,8 @@ struct ThemeResources { std::shared_ptr<platform::graphics::IBrush> text_selection_brush; std::shared_ptr<platform::graphics::IBrush> caret_brush; - style::StyleRuleSet button_style; - - style::StyleRuleSet text_box_style; + std::shared_ptr<style::StyleRuleSet> button_style; + std::shared_ptr<style::StyleRuleSet> text_box_style; style::StyleRuleSet menu_item_style; }; @@ -42,6 +41,8 @@ class CRU_UI_API UiManager : public Object { ThemeResources* GetThemeResources() { return &theme_resource_; } + void ReadResourcesFile(const String& file_path); + private: ThemeResources theme_resource_; }; |