From da781d6fe136a13bd0dbad95953383c0c2d764f2 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Thu, 30 May 2024 17:33:12 +0200 Subject: [PATCH] fix(appearance): remove custom padding from reset button --- cosmic-settings/src/pages/desktop/appearance.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/cosmic-settings/src/pages/desktop/appearance.rs b/cosmic-settings/src/pages/desktop/appearance.rs index 1826eea..70e3fe1 100644 --- a/cosmic-settings/src/pages/desktop/appearance.rs +++ b/cosmic-settings/src/pages/desktop/appearance.rs @@ -1548,12 +1548,10 @@ pub fn reset_button() -> Section { Section::default() .descriptions(vec![fl!("reset-to-default").into()]) .view::(|_binder, page, section| { - let spacing = &page.theme_builder.spacing; let descriptions = §ion.descriptions; if page.can_reset { button::standard(&*descriptions[0]) .on_press(Message::Reset) - .padding([spacing.space_xxs, spacing.space_xs]) .into() } else { horizontal_space(1).apply(Element::from)