diff options
author | crupest <crupest@outlook.com> | 2022-03-10 21:31:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-10 21:31:54 +0800 |
commit | f99d56cf4091baf34636436de42ac84f4f92ae66 (patch) | |
tree | d23966d20ae33f54fe98390784ee06efdc36336e /src/theme_builder/components/StyleRuleEditor.h | |
parent | 168817476f85e8dbc04c06691a73a7d75c4858d5 (diff) | |
download | cru-f99d56cf4091baf34636436de42ac84f4f92ae66.tar.gz cru-f99d56cf4091baf34636436de42ac84f4f92ae66.tar.bz2 cru-f99d56cf4091baf34636436de42ac84f4f92ae66.zip |
...
Diffstat (limited to 'src/theme_builder/components/StyleRuleEditor.h')
-rw-r--r-- | src/theme_builder/components/StyleRuleEditor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theme_builder/components/StyleRuleEditor.h b/src/theme_builder/components/StyleRuleEditor.h index 8cee966f..e819fc98 100644 --- a/src/theme_builder/components/StyleRuleEditor.h +++ b/src/theme_builder/components/StyleRuleEditor.h @@ -8,7 +8,7 @@ #include "cru/ui/style/StyleRule.h" #include "stylers/StylerEditor.h" -namespace cru::theme_builder { +namespace cru::theme_builder::components { class StyleRuleEditor : public ui::components::Component { public: StyleRuleEditor(); @@ -19,7 +19,7 @@ class StyleRuleEditor : public ui::components::Component { ~StyleRuleEditor() override; public: - ui::controls::Control* GetRootControl() override { return &main_layout_; } + ui::controls::Control* GetRootControl() override { return &container_; } ui::style::StyleRule GetValue() const; void SetValue(const ui::style::StyleRule& style_rule, @@ -29,6 +29,7 @@ class StyleRuleEditor : public ui::components::Component { IEvent<std::nullptr_t>* RemoveEvent() { return &remove_event_; } private: + ui::controls::Container container_; ui::controls::FlexLayout main_layout_; ui::controls::TextBlock label_; ui::controls::FlexLayout head_layout_; @@ -41,4 +42,4 @@ class StyleRuleEditor : public ui::components::Component { Event<std::nullptr_t> change_event_; Event<std::nullptr_t> remove_event_; }; -} // namespace cru::theme_builder +} // namespace cru::theme_builder::components |