#pragma once #include "../properties/ThicknessPropertyEditor.h" #include "StylerEditor.h" #include "cru/base/ClonablePtr.h" #include "cru/ui/style/Styler.h" namespace cru::theme_builder::components::stylers { class MarginStylerEditor : public StylerEditor { public: MarginStylerEditor(); ~MarginStylerEditor() override; ClonablePtr GetValue(); void SetValue(ui::style::MarginStyler* styler, bool trigger_change = true); void SetValue(const ClonablePtr& styler, bool trigger_change = true) { SetValue(styler.get(), trigger_change); } ClonablePtr GetStyler() override { return GetValue(); } private: properties::ThicknessPropertyEditor thickness_editor_; }; } // namespace cru::theme_builder::components::stylers