From 80879213af715181dcbc7578b5c0e60f28d5aaa8 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 30 May 2024 13:43:36 -0400 Subject: [PATCH] fix: use the user provided theme even when setting system theme the user may have set a preferred value which should be used. --- src/app/cosmic.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index 21ddf636..30adc37d 100644 --- a/src/app/cosmic.rs +++ b/src/app/cosmic.rs @@ -409,11 +409,9 @@ impl Cosmic { } Message::AppThemeChange(mut theme) => { - // Apply last-known system theme if the system theme is preferred. if let ThemeType::System { theme: _, .. } = theme.theme_type { self.app.core_mut().theme_sub_counter += 1; - theme = self.app.core().system_theme.clone(); let portal_accent = self.app.core().portal_accent; if let Some(a) = portal_accent { let t_inner = theme.cosmic();