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.
This commit is contained in:
Vukašin Vojinović 2024-09-24 00:41:12 +02:00 committed by Jeremy Soller
parent 3d0da66c3e
commit 98df25736a

View file

@ -2601,11 +2601,10 @@ impl Application for App {
}
fn header_end(&self) -> Vec<Element<Self::Message>> {
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(),
]