diff --git a/src/main.rs b/src/main.rs index bffa23b..43930c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1403,6 +1403,15 @@ impl Application for App { vec![menu_bar(&self.key_binds).into()] } + fn header_end(&self) -> Vec> { + let cosmic_theme::Spacing { space_xxs, .. } = self.core().system_theme().cosmic().spacing; + vec![widget::button(widget::icon::from_name("list-add-symbolic")) + .on_press(Message::TabNew) + .padding(space_xxs) + .style(style::Button::Icon) + .into()] + } + /// Creates a view after each update. fn view(&self) -> Element { let cosmic_theme::Spacing { space_xxs, .. } = self.core().system_theme().cosmic().spacing;