fix(appearance): sync UI state with theme config on import and reset
This commit is contained in:
parent
18ff4d01de
commit
91a4a8a588
1 changed files with 7 additions and 0 deletions
|
|
@ -327,6 +327,10 @@ impl Page {
|
|||
} else {
|
||||
ThemeBuilder::light()
|
||||
};
|
||||
|
||||
self.roundness = builder.corner_radii.into();
|
||||
self.density = Density::Standard;
|
||||
|
||||
self.theme_manager.set_active_hint(builder.active_hint);
|
||||
|
||||
self.theme_manager
|
||||
|
|
@ -483,6 +487,9 @@ impl Page {
|
|||
tracing::error!(?err, "Error setting dark mode");
|
||||
}
|
||||
|
||||
self.roundness = builder.corner_radii.into();
|
||||
self.density = Density::Standard;
|
||||
|
||||
self.theme_manager
|
||||
.selected_customizer_mut()
|
||||
.set_builder(*builder.clone())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue