Pass the settings to `build_child`

Marshall Bowers created

Change summary

crates/ui2/src/settings.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/ui2/src/settings.rs 🔗

@@ -78,7 +78,7 @@ where
     E: 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 }
 }