From 98df25736a6520816c77b3f11da0a5e564063bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= Date: Tue, 24 Sep 2024 00:41:12 +0200 Subject: [PATCH] fix(header): fixed new tab button padding This matches the new tab button to other header bar buttons, and prevents visual issues with non-default interface densities. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8506fce..a770b78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2601,11 +2601,10 @@ impl Application for App { } fn header_end(&self) -> Vec> { - let cosmic_theme::Spacing { space_xxs, .. } = self.core().system_theme().cosmic().spacing; vec![ widget::button::custom(icon_cache_get("list-add-symbolic", 16)) .on_press(Message::TabNew) - .padding(space_xxs) + .padding(8) .style(style::Button::Icon) .into(), ]