fix: Improve button/pill_button UI element to allow any child

This commit is contained in:
demenik
2025-12-01 14:26:16 +01:00
parent 7a608516eb
commit f908192c0e
8 changed files with 86 additions and 94 deletions

View File

@@ -43,8 +43,7 @@ pub fn open_settings(commands: &mut Commands) {
height: px(40),
..default()
},
"X",
24.0
|color| text("X", 24.0, color)
),
],
));
@@ -59,8 +58,7 @@ pub fn open_settings(commands: &mut Commands) {
padding: UiRect::all(px(10)),
..default()
},
"Spiel verlassen",
24.0,
|color| text("Spiel verlassen", 24.0, color)
));
parent.spawn(button(
@@ -70,8 +68,7 @@ pub fn open_settings(commands: &mut Commands) {
padding: UiRect::all(px(10)),
..default()
},
"Spiel speichern",
24.0,
|color| text("Spiel speichern", 24.0, color)
));
parent.spawn((