wip: support desktop portal color-scheme, and accent variables
This commit is contained in:
parent
c390b2614d
commit
06b46f455b
6 changed files with 107 additions and 34 deletions
|
|
@ -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)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue