Settings refactor (#38367)
Co-Authored-By: Ben K <ben@zed.dev> Co-Authored-By: Anthony <anthony@zed.dev> Co-Authored-By: Mikayla <mikayla@zed.dev> Release Notes: - settings: Major internal changes to settings. The primary user-facing effect is that some settings which did not make sense in project settings files are no-longer read from there. (For example the inline blame settings) --------- Co-authored-by: Ben Kunkle <ben@zed.dev> Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com> Co-authored-by: Anthony <anthony@zed.dev>
This commit is contained in:
co-authored by
Ben Kunkle
Mikayla Maki
Anthony
parent
0a9023bce0
commit
fcdab160f9
@@ -180,8 +180,8 @@ impl PickerDelegate for IconThemeSelectorDelegate {
|
||||
|
||||
let appearance = Appearance::from(window.appearance());
|
||||
|
||||
update_settings_file::<ThemeSettings>(self.fs.clone(), cx, move |settings, _| {
|
||||
settings.set_icon_theme(theme_name.to_string(), appearance);
|
||||
update_settings_file(self.fs.clone(), cx, move |settings, _| {
|
||||
theme::set_icon_theme(settings, theme_name.to_string(), appearance);
|
||||
});
|
||||
|
||||
self.selector
|
||||
|
||||
@@ -238,8 +238,8 @@ impl PickerDelegate for ThemeSelectorDelegate {
|
||||
|
||||
let appearance = Appearance::from(window.appearance());
|
||||
|
||||
update_settings_file::<ThemeSettings>(self.fs.clone(), cx, move |settings, _| {
|
||||
settings.set_theme(theme_name.to_string(), appearance);
|
||||
update_settings_file(self.fs.clone(), cx, move |settings, _| {
|
||||
theme::set_theme(settings, theme_name.to_string(), appearance);
|
||||
});
|
||||
|
||||
self.selector
|
||||
|
||||
Reference in New Issue
Block a user