fix: adapt to cosmic-theme background(transparent) accessor

Leyoda 2026 – GPLv3
This commit is contained in:
Lionel DARNIS 2026-07-02 19:24:17 +02:00
parent 5fcd257eae
commit 0df32b8143
3 changed files with 112 additions and 106 deletions

View file

@ -552,7 +552,7 @@ impl App {
//TODO: move style to libcosmic
.class(theme::Container::custom(|theme| {
let cosmic = theme.cosmic();
let component = &cosmic.background.component;
let component = &cosmic.background(false).component;
widget::container::Style {
icon_color: Some(component.on.into()),
text_color: Some(component.on.into()),

View file

@ -387,7 +387,7 @@ impl App {
//TODO: move style to libcosmic
.class(theme::Container::custom(|theme| {
let cosmic = theme.cosmic();
let component = &cosmic.background.component;
let component = &cosmic.background(false).component;
widget::container::Style {
icon_color: Some(component.on.into()),
text_color: Some(component.on.into()),