Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ui: Apply elevation outside `SettingsContainer` (#15346)
Marshall Bowerscb07e02ce93a
diff --git a/crates/settings_ui/src/settings_ui.rs b/crates/settings_ui/src/settings_ui.rsindex b7c2994fa28..cf6177e9a8c 100644--- a/crates/settings_ui/src/settings_ui.rs+++ b/crates/settings_ui/src/settings_ui.rs@@ -100,23 +100,25 @@ impl Item for SettingsPage {}impl Render for SettingsPage {- fn render(&mut self, _cx: &mut ViewContext<Self>) -> impl IntoElement {+ fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {v_flex().p_4().size_full().gap_4().child(Label::new("Settings").size(LabelSize::Large)).child(- v_flex()- .gap_1()- .child(Label::new("Appearance"))- .child(AppearanceSettingsControls::new()),+ v_flex().gap_1().child(Label::new("Appearance")).child(+ v_flex()+ .elevation_2(cx)+ .child(AppearanceSettingsControls::new()),+ ),).child(- v_flex()- .gap_1()- .child(Label::new("Editor"))- .child(EditorSettingsControls::new()),+ v_flex().gap_1().child(Label::new("Editor")).child(+ v_flex()+ .elevation_2(cx)+ .child(EditorSettingsControls::new()),+ ),)}}diff --git a/crates/ui/src/components/settings_container.rs b/crates/ui/src/components/settings_container.rsindex a398c9070bd..018b71900ed 100644--- a/crates/ui/src/components/settings_container.rs+++ b/crates/ui/src/components/settings_container.rs@@ -23,11 +23,7 @@ impl ParentElement for SettingsContainer {}impl RenderOnce for SettingsContainer {- fn render(self, cx: &mut WindowContext) -> impl IntoElement {- v_flex()- .elevation_2(cx)- .px_2()- .gap_1()- .children(self.children)+ fn render(self, _cx: &mut WindowContext) -> impl IntoElement {+ v_flex().px_2().gap_1().children(self.children)}}