fix(appearance): sync UI state with theme config on import and reset

This commit is contained in:
md 2026-03-15 15:37:20 +05:30 committed by Ashley Wulber
parent 18ff4d01de
commit 91a4a8a588

View file

@ -327,6 +327,10 @@ impl Page {
} else { } else {
ThemeBuilder::light() ThemeBuilder::light()
}; };
self.roundness = builder.corner_radii.into();
self.density = Density::Standard;
self.theme_manager.set_active_hint(builder.active_hint); self.theme_manager.set_active_hint(builder.active_hint);
self.theme_manager self.theme_manager
@ -483,6 +487,9 @@ impl Page {
tracing::error!(?err, "Error setting dark mode"); tracing::error!(?err, "Error setting dark mode");
} }
self.roundness = builder.corner_radii.into();
self.density = Density::Standard;
self.theme_manager self.theme_manager
.selected_customizer_mut() .selected_customizer_mut()
.set_builder(*builder.clone()) .set_builder(*builder.clone())