fix: absorb libcosmic theme-v2 API (private containers, text::Style, wgpu 28)

Leyoda 2026 – GPLv3
This commit is contained in:
Lionel DARNIS 2026-07-03 12:36:51 +02:00
parent 58b0598de8
commit 9141780b30
5 changed files with 11 additions and 9 deletions

View file

@ -1364,8 +1364,8 @@ impl Decorations<CosmicStackInternal, Message> for DefaultDecorations {
iced_widget::container::Style {
snap: true,
icon_color: Some(cosmic_theme.background.on.into()),
text_color: Some(cosmic_theme.background.on.into()),
icon_color: Some(cosmic_theme.background(false).on.into()),
text_color: Some(cosmic_theme.background(false).on.into()),
background: Some(Background::Color(background.into())),
border: Border {
radius,

View file

@ -65,7 +65,7 @@ impl From<TabBackgroundTheme> for theme::Container<'_> {
icon_color: Some(Color::from(theme.cosmic().accent_text_color())),
text_color: Some(Color::from(theme.cosmic().accent_text_color())),
background: Some(Background::Color(
theme.cosmic().primary.component.selected.into(),
theme.cosmic().primary(false).component.selected.into(),
)),
border: Border {
radius: 0.0.into(),
@ -81,7 +81,7 @@ impl From<TabBackgroundTheme> for theme::Container<'_> {
icon_color: None,
text_color: None,
background: Some(Background::Color(
theme.cosmic().primary.component.base.into(),
theme.cosmic().primary(false).component.base.into(),
)),
border: Border {
radius: 0.0.into(),

View file

@ -826,7 +826,7 @@ impl Program for CosmicWindowInternal {
fn background_color(&self, theme: &cosmic::Theme) -> Color {
if self.window.is_maximized(false) {
theme.cosmic().background.base.into()
theme.cosmic().background(false).base.into()
} else {
Color::TRANSPARENT
}