chrome: fix theme persistence

Fixes: #832
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-05-01 20:27:08 -07:00
parent a94cbb2dc0
commit 8b7914e395

View File

@@ -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 => {