Added theme and dock anchor saving :D
This commit is contained in:
parent
5487f99ac7
commit
e7b6d1befe
9 changed files with 111 additions and 19 deletions
|
@ -153,6 +153,10 @@ impl PickerDelegate for ThemeSelector {
|
|||
|
||||
fn confirm(&mut self, cx: &mut ViewContext<Self>) {
|
||||
self.selection_completed = true;
|
||||
|
||||
let theme_name = cx.global::<Settings>().theme.meta.name.clone();
|
||||
settings::settings_file::write_setting("theme", theme_name, cx);
|
||||
|
||||
cx.emit(Event::Dismissed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue