fix(stack): get gradient colors from theme

This commit is contained in:
Michael Aaron Murphy 2024-02-27 19:10:14 +01:00 committed by Victoria Brekenfeld
parent e7cf8581cc
commit 26400b5fcd
2 changed files with 20 additions and 30 deletions

View file

@ -225,17 +225,12 @@ impl<Message: TabMessage + 'static> Tab<Message> {
.padding([2, 4])
.center_y()
.into(),
cosmic::Element::<Message>::new(
tab_text(self.title)
.font(self.font)
.font_size(14.0)
.background(
self.background_theme
.background_color(&cosmic::theme::active()),
)
.height(Length::Fill)
.width(Length::Fill),
),
tab_text(self.title)
.font(self.font)
.font_size(14.0)
.height(Length::Fill)
.width(Length::Fill)
.into(),
close_button
.apply(widget::container)
.height(Length::Fill)