aboutsummaryrefslogtreecommitdiff
path: root/src/ui/style/Styler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/style/Styler.cpp')
-rw-r--r--src/ui/style/Styler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/style/Styler.cpp b/src/ui/style/Styler.cpp
index 7085fd3e..44a24462 100644
--- a/src/ui/style/Styler.cpp
+++ b/src/ui/style/Styler.cpp
@@ -30,4 +30,12 @@ void CursorStyler::Apply(controls::Control *control) const {
void PreferredSizeStyler::Apply(controls::Control *control) const {
control->SetPreferredSize(size_);
}
+
+void MarginStyler::Apply(controls::Control *control) const {
+ control->SetMargin(margin_);
+}
+
+void PaddingStyler::Apply(controls::Control *control) const {
+ control->SetPadding(padding_);
+}
} // namespace cru::ui::style