This commit is contained in:
griffi-gh 2024-03-24 22:55:36 +01:00
parent 95b4c47fbd
commit 2db8d2f056

View file

@ -19,12 +19,8 @@ ui_main!(
run: |ui, size, _| { run: |ui, size, _| {
Container::default() Container::default()
.with_size(size!(100%)) .with_size(size!(100%))
.with_direction(Direction::Horizontal)
.with_align(Alignment::Center) .with_align(Alignment::Center)
.with_padding(5.)
.with_gap(10.)
.with_background(color::WHITE) .with_background(color::WHITE)
.with_wrap(true)
.with_children(|ui| { .with_children(|ui| {
FillRect::default() FillRect::default()
.with_size(size!(300, 100)) .with_size(size!(300, 100))