fix: Improve button/pill_button UI element to allow any child
This commit is contained in:
@@ -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((
|
||||
|
||||
Reference in New Issue
Block a user