Skip to content

Commit

Permalink
fix(header): fixed new tab button padding
Browse files Browse the repository at this point in the history
This matches the new tab button to other header bar buttons, and prevents visual issues with non-default interface densities.
  • Loading branch information
git-f0x authored and jackpot51 committed Sep 24, 2024
1 parent 3d0da66 commit 98df257
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]
Expand Down

0 comments on commit 98df257

Please sign in to comment.