Update approach to settings
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
289255d67a
commit
8b637e194e
7 changed files with 59 additions and 83 deletions
|
@ -405,7 +405,7 @@ impl<S: 'static + Send + Sync + Clone> ListEntry<S> {
|
|||
// .ml(rems(0.75 * self.indent_level as f32))
|
||||
.children((0..self.indent_level).map(|_| {
|
||||
div()
|
||||
.w(setting.list_indent_depth())
|
||||
.w(*setting.list_indent_depth)
|
||||
.h_full()
|
||||
.flex()
|
||||
.justify_center()
|
||||
|
|
|
@ -61,7 +61,7 @@ impl<S: 'static + Send + Sync> Panel<S> {
|
|||
scroll_state,
|
||||
current_side: PanelSide::default(),
|
||||
allowed_sides: PanelAllowedSides::default(),
|
||||
initial_width: setting.default_panel_size(),
|
||||
initial_width: *setting.default_panel_size,
|
||||
width: None,
|
||||
children: SmallVec::new(),
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ impl TitleBar {
|
|||
.flex()
|
||||
.items_center()
|
||||
.gap_1()
|
||||
.when(setting.titlebar_show_project_owner(), |this| {
|
||||
.when(*setting.titlebar.show_project_owner, |this| {
|
||||
this.child(Button::new("iamnbutler"))
|
||||
})
|
||||
.child(Button::new("zed"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue