From 4aac733238dd05f7e77aeb9c65ce509e1de24427 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 19 Oct 2023 13:23:08 -0400 Subject: [PATCH] Pass the settings to `build_child` --- crates/ui2/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui2/src/settings.rs b/crates/ui2/src/settings.rs index 05df5b49566c9c4d9f97b6d0bbd70e4c483df904..ffc2ef785183ce64044ec6733902fa903f61fe70 100644 --- a/crates/ui2/src/settings.rs +++ b/crates/ui2/src/settings.rs @@ -78,7 +78,7 @@ where E: Element, F: FnOnce(&mut ViewContext) -> 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 } }