aboutsummaryrefslogtreecommitdiff
path: root/src/ui/style/Styler.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-26 20:12:54 +0800
committercrupest <crupest@outlook.com>2022-02-26 20:12:54 +0800
commit673f1939beb1b477a23d9641a07a2e05fff903b4 (patch)
tree048ba6b4eab749266d8e2ec05df182bedcf3499f /src/ui/style/Styler.cpp
parent65e288c40a593965b41378755f7111c56e123295 (diff)
downloadcru-673f1939beb1b477a23d9641a07a2e05fff903b4.tar.gz
cru-673f1939beb1b477a23d9641a07a2e05fff903b4.tar.bz2
cru-673f1939beb1b477a23d9641a07a2e05fff903b4.zip
...
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