commit 8b7914e39513c0fce36cc12fa6b5041898cee0b4
parent a94cbb2dc0448fc38366a1bf35983e5b92d7409e
Author: William Casarin <jb55@jb55.com>
Date: Thu, 1 May 2025 20:27:08 -0700
chrome: fix theme persistence
Fixes: #832
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -51,10 +51,10 @@ impl ChromePanelAction {
fn process(&self, ctx: &AppContext, chrome: &mut Chrome, ui: &mut egui::Ui) {
match self {
Self::SaveTheme(theme) => {
- tracing::info!("Switching theme to {:?}", theme);
ui.ctx().options_mut(|o| {
o.theme_preference = *theme;
});
+ ctx.theme.save(*theme);
}
Self::Support => {