aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleSetEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-08 21:13:01 +0800
committercrupest <crupest@outlook.com>2022-02-08 21:13:01 +0800
commitfa1764d7cb77aa683c6049f915a46b981f9161f7 (patch)
treee5b54620d3b84f5391e995ab483647214152ca99 /src/theme_builder/components/StyleRuleSetEditor.h
parent74bb9cd27242b9320f99ff4d2b50c3051576cc14 (diff)
downloadcru-fa1764d7cb77aa683c6049f915a46b981f9161f7.tar.gz
cru-fa1764d7cb77aa683c6049f915a46b981f9161f7.tar.bz2
cru-fa1764d7cb77aa683c6049f915a46b981f9161f7.zip
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleSetEditor.h')
-rw-r--r--src/theme_builder/components/StyleRuleSetEditor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/theme_builder/components/StyleRuleSetEditor.h b/src/theme_builder/components/StyleRuleSetEditor.h
index ecb3ee95..50f1c80d 100644
--- a/src/theme_builder/components/StyleRuleSetEditor.h
+++ b/src/theme_builder/components/StyleRuleSetEditor.h
@@ -2,6 +2,7 @@
#include "cru/ui/components/Component.h"
#include "cru/ui/controls/Control.h"
#include "cru/ui/controls/FlexLayout.h"
+#include "cru/ui/style/StyleRuleSet.h"
namespace cru::theme_builder {
class StyleRuleSetEditor : public ui::components::Component {
@@ -16,7 +17,14 @@ class StyleRuleSetEditor : public ui::components::Component {
public:
ui::controls::Control* GetRootControl() override { return main_layout_; }
+ void BindStyleRuleSet(std::shared_ptr<ui::style::StyleRuleSet> rule_set);
+
+ private:
+ void UpdateView();
+
private:
ui::controls::FlexLayout* main_layout_;
+
+ std::shared_ptr<ui::style::StyleRuleSet> style_rule_set_;
};
} // namespace cru::theme_builder