aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/UiManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/UiManager.hpp')
-rw-r--r--include/cru/ui/UiManager.hpp7
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_;
};