We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ui
1 parent 0265436 commit 4edd782Copy full SHA for 4edd782
examples/ui/ui.rs
@@ -62,6 +62,8 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
62
style: Style {
63
width: Val::Percent(100.),
64
flex_direction: FlexDirection::Column,
65
+ padding: UiRect::all(Val::Px(5.)),
66
+ row_gap: Val::Px(5.),
67
..default()
68
},
69
background_color: Color::srgb(0.15, 0.15, 0.15).into(),
@@ -77,11 +79,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
77
79
font_size: 30.0,
78
80
81
- )
- .with_style(Style {
82
- margin: UiRect::all(Val::Px(5.)),
83
- ..default()
84
- }),
+ ),
85
// Because this is a distinct label widget and
86
// not button/list item text, this is necessary
87
// for accessibility to treat the text accordingly.
0 commit comments