From 673f1939beb1b477a23d9641a07a2e05fff903b4 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 26 Feb 2022 20:12:54 +0800 Subject: ... --- src/ui/style/Styler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/style/Styler.cpp') 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 -- cgit v1.2.3