Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Pass the settings to `build_child`
Marshall Bowers4aac733238dd
diff --git a/crates/ui2/src/settings.rs b/crates/ui2/src/settings.rsindex 05df5b49566..ffc2ef78518 100644--- a/crates/ui2/src/settings.rs+++ b/crates/ui2/src/settings.rs@@ -78,7 +78,7 @@ whereE: Element,F: FnOnce(&mut ViewContext<E::ViewState>) -> E,{- let child = cx.with_global(theme.clone(), |cx| build_child(cx));+ let child = cx.with_global(settings.clone(), |cx| build_child(cx));WithSettings { settings, child }}