aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/StyleRuleSetEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
committercrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
commit2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 (patch)
tree9f19ec2697e1cf27895540f989d52946dcf4adab /src/theme_builder/components/StyleRuleSetEditor.h
parentc6de932f727ed324cf875ea3fca9ca44775a820e (diff)
downloadcru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.gz
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.bz2
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.zip
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleSetEditor.h')
-rw-r--r--src/theme_builder/components/StyleRuleSetEditor.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/theme_builder/components/StyleRuleSetEditor.h b/src/theme_builder/components/StyleRuleSetEditor.h
index 75597cf4..cb77d71e 100644
--- a/src/theme_builder/components/StyleRuleSetEditor.h
+++ b/src/theme_builder/components/StyleRuleSetEditor.h
@@ -1,5 +1,7 @@
#pragma once
+#include "StyleRuleEditor.h"
#include "cru/ui/components/Component.h"
+#include "cru/ui/controls/Button.h"
#include "cru/ui/controls/Control.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/style/StyleRuleSet.h"
@@ -15,16 +17,17 @@ class StyleRuleSetEditor : public ui::components::Component {
~StyleRuleSetEditor() override;
public:
- ui::controls::Control* GetRootControl() override { return &main_layout_; }
+ ui::controls::Control* GetRootControl() override { return &container_; }
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_;
+
+ ui::controls::FlexLayout container_;
+ ui::controls::FlexLayout rules_layout_;
+ std::vector<std::unique_ptr<StyleRuleEditor>> style_rule_editors_;
+ ui::controls::Button add_button_;
+ ui::controls::TextBlock add_button_text_;
};
} // namespace cru::theme_builder