Merge pull request #766 from hojjatabdollahi/hojjat/fix-tab-style

fix(style): add the background color to that tab bar
This commit is contained in:
Levi Portenier 2026-03-26 15:19:50 -06:00 committed by GitHub
commit 7abe927b9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
);
}