diff options
author | crupest <crupest@outlook.com> | 2022-05-15 14:15:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-15 14:15:31 +0800 |
commit | 34a64e6ffefaab007578932ddbab931a25f1d56e (patch) | |
tree | 541fdb8279e829a129df62288d09916bf23c9200 /src/theme_builder/components/HeadBodyEditor.cpp | |
parent | 8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6 (diff) | |
download | cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.gz cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.bz2 cru-34a64e6ffefaab007578932ddbab931a25f1d56e.zip |
...
Diffstat (limited to 'src/theme_builder/components/HeadBodyEditor.cpp')
-rw-r--r-- | src/theme_builder/components/HeadBodyEditor.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/theme_builder/components/HeadBodyEditor.cpp b/src/theme_builder/components/HeadBodyEditor.cpp deleted file mode 100644 index 6d7ace66..00000000 --- a/src/theme_builder/components/HeadBodyEditor.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "HeadBodyEditor.h" -#include "Common.h" -#include "cru/ui/ThemeManager.h" -#include "cru/ui/controls/FlexLayout.h" - -namespace cru::theme_builder::components { -HeadBodyEditor::HeadBodyEditor() { - border_.SetChild(&container_); - border_.SetBackgroundBrush(CreateRandomEditorBackgroundBrush()); - - container_.SetFlexDirection(ui::controls::FlexDirection::Vertical); - container_.AddChild(&head_container_); - container_.SetItemCrossAlign(ui::controls::FlexCrossAlignment::Stretch); - head_container_.SetFlexDirection(ui::controls::FlexDirection::Horizontal); - head_container_.AddChild(&label_); - - remove_button_.GetStyleRuleSet()->SetParent( - ui::ThemeManager::GetInstance()->GetResourceStyleRuleSet( - u"cru.theme_builder.icon-button.style")); - remove_button_.SetIconWithSvgPathDataStringResourceKey(u"icon.close", - {0, 0, 16, 16}); - remove_button_.SetIconFillColor(ui::colors::red); - head_container_.AddChild(&remove_button_); - - remove_button_.ClickEvent()->AddSpyOnlyHandler( - [this] { remove_event_.Raise(nullptr); }); -} - -HeadBodyEditor::~HeadBodyEditor() {} -} // namespace cru::theme_builder::components |