fix(appearance): add density to reset to default
This commit is contained in:
parent
a944359656
commit
8097fc57b0
2 changed files with 6 additions and 2 deletions
|
|
@ -768,6 +768,10 @@ impl Page {
|
||||||
if let Some(config) = self.theme_builder_config.as_ref() {
|
if let Some(config) = self.theme_builder_config.as_ref() {
|
||||||
_ = self.theme_builder.write_entry(config);
|
_ = self.theme_builder.write_entry(config);
|
||||||
};
|
};
|
||||||
|
if let Some(config) = self.tk_config.as_mut() {
|
||||||
|
_ = config.set("interface_density", Density::Standard);
|
||||||
|
_ = config.set("header_size", Density::Standard);
|
||||||
|
}
|
||||||
|
|
||||||
let config = if self.theme_mode.is_dark {
|
let config = if self.theme_mode.is_dark {
|
||||||
Theme::dark_config()
|
Theme::dark_config()
|
||||||
|
|
@ -784,6 +788,7 @@ impl Page {
|
||||||
let r = self.roundness;
|
let r = self.roundness;
|
||||||
tokio::task::spawn(async move {
|
tokio::task::spawn(async move {
|
||||||
Self::update_panel_radii(r);
|
Self::update_panel_radii(r);
|
||||||
|
Self::update_panel_spacing(Density::Standard);
|
||||||
});
|
});
|
||||||
|
|
||||||
self.reload_theme_mode();
|
self.reload_theme_mode();
|
||||||
|
|
|
||||||
|
|
@ -509,8 +509,7 @@ impl Page {
|
||||||
.on_input(Message::InputSourceSearch)
|
.on_input(Message::InputSourceSearch)
|
||||||
.on_clear(Message::InputSourceSearch(String::new()));
|
.on_clear(Message::InputSourceSearch(String::new()));
|
||||||
|
|
||||||
let toggler = widget::toggler(
|
let toggler = settings::item::builder(fl!("show-extended-input-sources")).toggler(
|
||||||
fl!("show-extended-input-sources"),
|
|
||||||
self.show_extended_input_sources,
|
self.show_extended_input_sources,
|
||||||
Message::SetShowExtendedInputSources,
|
Message::SetShowExtendedInputSources,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue