From 9783dd4e55ca2951c2a836eddd22f4c04a587012 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 21 Dec 2023 12:05:05 -0700 Subject: [PATCH] Fix background of tabs --- src/main.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 76ee91a..54c2b3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -244,12 +244,16 @@ impl cosmic::Application for App { if self.tab_model.iter().count() > 1 { tab_column = tab_column.push( - widget::view_switcher::horizontal(&self.tab_model) - .button_height(32) - .button_spacing(space_xxs) - .on_activate(Message::TabActivate) - .on_close(Message::TabClose) - .width(Length::Shrink), + widget::container(row![ + widget::view_switcher::horizontal(&self.tab_model) + .button_height(32) + .button_spacing(space_xxs) + .on_activate(Message::TabActivate) + .on_close(Message::TabClose) + .width(Length::Shrink), + widget::horizontal_space(Length::Fill) + ]) + .style(style::Container::Background), ); }