From 8203b1e23322eda28432c2154e2c57a7eef53f87 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Thu, 19 Mar 2026 11:15:58 -0600 Subject: [PATCH] fix(style): add the background color to that tab bar --- src/main.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 015b5eb..0db17f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3265,7 +3265,19 @@ impl Application for App { .on_activate(Message::TabActivate) .on_close(|entity| Message::TabClose(Some(entity))), ) - .class(style::Container::Background) + .class(style::Container::Custom(Box::new(|theme| { + let cosmic = theme.cosmic(); + cosmic::iced_widget::container::Style { + icon_color: Some(Color::from(cosmic.background.on)), + text_color: Some(Color::from(cosmic.background.on)), + background: Some(iced::Background::Color( + cosmic.background.base.into(), + )), + border: iced::Border::default(), + shadow: iced::Shadow::default(), + snap: true, + } + }))) .width(Length::Fill), ); }