diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 82421a8684..a58ca683df 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -88,7 +88,7 @@ impl Application for SolarSystem { } } - theme::Application::from(dark_background as fn(&Theme) -> _) + theme::Application::custom(dark_background) } fn subscription(&self) -> Subscription {