From 24f16dce1e5c3bf840f8a5eaf4a3ad94e2012fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 26 Jun 2024 08:09:06 +0200 Subject: [PATCH] also fix mobile example --- examples/mobile/src/lib.rs | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/examples/mobile/src/lib.rs b/examples/mobile/src/lib.rs index 14e929cab08e5..50657091755c9 100644 --- a/examples/mobile/src/lib.rs +++ b/examples/mobile/src/lib.rs @@ -114,21 +114,18 @@ fn setup_scene( // Test ui commands - .spawn(( - ButtonBundle { - style: Style { - justify_content: JustifyContent::Center, - align_items: AlignItems::Center, - position_type: PositionType::Absolute, - left: Val::Px(50.0), - right: Val::Px(50.0), - bottom: Val::Px(50.0), - ..default() - }, + .spawn(ButtonBundle { + style: Style { + justify_content: JustifyContent::Center, + align_items: AlignItems::Center, + position_type: PositionType::Absolute, + left: Val::Px(50.0), + right: Val::Px(50.0), + bottom: Val::Px(50.0), ..default() }, - BackgroundColor(Color::WHITE), - )) + ..default() + }) .with_children(|b| { b.spawn( TextBundle::from_section(