wip: support desktop portal color-scheme, and accent variables

This commit is contained in:
Ashley Wulber 2024-03-01 20:21:52 -05:00 committed by Ashley Wulber
parent c390b2614d
commit 06b46f455b
6 changed files with 107 additions and 34 deletions

View file

@ -112,8 +112,8 @@ pub fn system_dark() -> Theme {
}
pub fn system_light() -> Theme {
let Ok(helper) = crate::cosmic_theme::Theme::dark_config() else {
return Theme::dark();
let Ok(helper) = crate::cosmic_theme::Theme::light_config() else {
return Theme::light();
};
let t = crate::cosmic_theme::Theme::get_entry(&helper).unwrap_or_else(|(errors, theme)| {