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:
parent
3d0da66c3e
commit
98df25736a
1 changed files with 1 additions and 2 deletions
|
|
@ -2601,11 +2601,10 @@ impl Application for App {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn header_end(&self) -> Vec<Element<Self::Message>> {
|
fn header_end(&self) -> Vec<Element<Self::Message>> {
|
||||||
let cosmic_theme::Spacing { space_xxs, .. } = self.core().system_theme().cosmic().spacing;
|
|
||||||
vec![
|
vec![
|
||||||
widget::button::custom(icon_cache_get("list-add-symbolic", 16))
|
widget::button::custom(icon_cache_get("list-add-symbolic", 16))
|
||||||
.on_press(Message::TabNew)
|
.on_press(Message::TabNew)
|
||||||
.padding(space_xxs)
|
.padding(8)
|
||||||
.style(style::Button::Icon)
|
.style(style::Button::Icon)
|
||||||
.into(),
|
.into(),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue