aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/styler/BorderStylerEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-14 22:51:37 +0800
committercrupest <crupest@outlook.com>2022-02-14 22:51:37 +0800
commit21c1c3281cd4186d9810d68122e9e8e92da714ad (patch)
treea458a6329b82145dbd7e255cf11f203c9116dafe /src/theme_builder/components/styler/BorderStylerEditor.h
parent6593a25baa01687b9462f792ce91bd46909df229 (diff)
downloadcru-21c1c3281cd4186d9810d68122e9e8e92da714ad.tar.gz
cru-21c1c3281cd4186d9810d68122e9e8e92da714ad.tar.bz2
cru-21c1c3281cd4186d9810d68122e9e8e92da714ad.zip
...
Diffstat (limited to 'src/theme_builder/components/styler/BorderStylerEditor.h')
-rw-r--r--src/theme_builder/components/styler/BorderStylerEditor.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/theme_builder/components/styler/BorderStylerEditor.h b/src/theme_builder/components/styler/BorderStylerEditor.h
deleted file mode 100644
index 991647e7..00000000
--- a/src/theme_builder/components/styler/BorderStylerEditor.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-#include "../properties/ColorPropertyEditor.h"
-#include "../properties/CornerRadiusPropertyEditor.h"
-#include "../properties/OptionalPropertyEditor.h"
-#include "../properties/ThicknessPropertyEditor.h"
-#include "cru/common/ClonablePtr.h"
-#include "cru/common/Event.h"
-#include "cru/ui/components/Component.h"
-#include "cru/ui/controls/CheckBox.h"
-#include "cru/ui/controls/FlexLayout.h"
-#include "cru/ui/style/Styler.h"
-
-namespace cru::theme_builder::components::styler {
-class BorderStylerEditor : public ui::components::Component {
- public:
- BorderStylerEditor();
- ~BorderStylerEditor() override;
-
- ui::controls::Control* GetRootControl() override { return nullptr; }
-
- ClonablePtr<ui::style::BorderStyler> GetValue();
- void SetValue(const ClonablePtr<ui::style::BorderStyler>& styler);
-
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
-
- private:
- ui::controls::FlexLayout container_;
- properties::OptionalPropertyEditor<properties::CornerRadiusPropertyEditor>
- corner_radius_editor_;
- properties::OptionalPropertyEditor<properties::ThicknessPropertyEditor>
- thickness_editor_;
- properties::OptionalPropertyEditor<properties::ColorPropertyEditor>
- brush_editor_;
- properties::OptionalPropertyEditor<properties::ColorPropertyEditor>
- foreground_brush_editor_;
- properties::OptionalPropertyEditor<properties::ColorPropertyEditor>
- background_brush_editor_;
-
- Event<std::nullptr_t> change_event_;
-};
-} // namespace cru::theme_builder::components::styler