Skip to content

Commit f7d1641

Browse files
8rokenmmstick
andauthored
fix(appearance): Multiple fixes + refactor (#1244)
- Switching theme mode is now reflected immediately in the settings application; - Color changes are propagated immediately when selected; - Imported theme is now loaded immediately; - Interface density is now responsive when selected; - Font Selection is updated to the screen when changes are committed; - Icons toolkit's "Apply to Gnome" toggle is now responsive; Logical fixes: - Style (Round, Square, etc) is now sync'ed between dark & light mode; - Interface Density is now updated for both modes; - Window Management is also updated for both modes; Improvements/Perf fixes: - Removed code paths where the same configuration field was written multiple times in the same pass; - Stopped completely rebuilding the whole page when theme needed to be rebuild; - Simplified initialization of the Appearance module; - Extracted theme manipulation to its own module for future performance improvement; --------- Co-authored-by: Michael Aaron Murphy <[email protected]>
1 parent 126503f commit f7d1641

File tree

9 files changed

+1871
-1677
lines changed

9 files changed

+1871
-1677
lines changed

cosmic-settings/src/app.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,9 @@ impl cosmic::Application for SettingsApp {
756756
}
757757
}
758758

759-
Message::SetTheme(t) => return cosmic::command::set_theme(t),
760-
759+
Message::SetTheme(t) => {
760+
return cosmic::command::set_theme(t);
761+
}
761762
Message::OpenContextDrawer(page) => {
762763
self.core.window.show_context = true;
763764
self.active_context_page = Some(page);

0 commit comments

Comments
 (0)