From 82e3355036d4aeb4fbae4d5f1745f76e6df37467 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Sun, 23 Apr 2023 11:25:23 +0200 Subject: [PATCH] fix(ui): fixed buttons placing in classic style --- src/ui/main/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/main/mod.rs b/src/ui/main/mod.rs index 949d3ee..b5197bc 100644 --- a/src/ui/main/mod.rs +++ b/src/ui/main/mod.rs @@ -265,8 +265,13 @@ impl SimpleComponent for App { #[watch] set_visible: !model.downloading, + #[watch] + set_margin_bottom: match model.style { + LauncherStyle::Modern => 48, + LauncherStyle::Classic => 0 + }, + set_vexpand: true, - set_margin_bottom: 48, gtk::Box { #[watch]