Fix background of tabs

This commit is contained in:
Jeremy Soller 2023-12-21 12:05:05 -07:00
parent 2193003ada
commit 9783dd4e55

View file

@ -244,12 +244,16 @@ impl cosmic::Application for App {
if self.tab_model.iter().count() > 1 { if self.tab_model.iter().count() > 1 {
tab_column = tab_column.push( tab_column = tab_column.push(
widget::view_switcher::horizontal(&self.tab_model) widget::container(row![
.button_height(32) widget::view_switcher::horizontal(&self.tab_model)
.button_spacing(space_xxs) .button_height(32)
.on_activate(Message::TabActivate) .button_spacing(space_xxs)
.on_close(Message::TabClose) .on_activate(Message::TabActivate)
.width(Length::Shrink), .on_close(Message::TabClose)
.width(Length::Shrink),
widget::horizontal_space(Length::Fill)
])
.style(style::Container::Background),
); );
} }