diff options
| author | crupest <crupest@outlook.com> | 2022-02-16 22:42:34 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-16 22:42:34 +0800 |
| commit | f75ab0bd662c73d15057d746347d09bf94a992a6 (patch) | |
| tree | 91efc33de481edf5304001d80b914b69cc0fb338 /src/theme_builder/components/StyleRuleSetEditor.h | |
| parent | 2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 (diff) | |
| download | cru-f75ab0bd662c73d15057d746347d09bf94a992a6.tar.gz cru-f75ab0bd662c73d15057d746347d09bf94a992a6.tar.bz2 cru-f75ab0bd662c73d15057d746347d09bf94a992a6.zip | |
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleSetEditor.h')
| -rw-r--r-- | src/theme_builder/components/StyleRuleSetEditor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theme_builder/components/StyleRuleSetEditor.h b/src/theme_builder/components/StyleRuleSetEditor.h index cb77d71e..c58a7a3d 100644 --- a/src/theme_builder/components/StyleRuleSetEditor.h +++ b/src/theme_builder/components/StyleRuleSetEditor.h @@ -4,6 +4,7 @@ #include "cru/ui/controls/Button.h" #include "cru/ui/controls/Control.h" #include "cru/ui/controls/FlexLayout.h" +#include "cru/ui/controls/ScrollView.h" #include "cru/ui/style/StyleRuleSet.h" namespace cru::theme_builder { @@ -17,13 +18,14 @@ class StyleRuleSetEditor : public ui::components::Component { ~StyleRuleSetEditor() override; public: - ui::controls::Control* GetRootControl() override { return &container_; } + ui::controls::Control* GetRootControl() override { return &scroll_view_; } void BindStyleRuleSet(std::shared_ptr<ui::style::StyleRuleSet> rule_set); private: std::shared_ptr<ui::style::StyleRuleSet> style_rule_set_; + ui::controls::ScrollView scroll_view_; ui::controls::FlexLayout container_; ui::controls::FlexLayout rules_layout_; std::vector<std::unique_ptr<StyleRuleEditor>> style_rule_editors_; |
