simplify with_background_frame call in example

This commit is contained in:
griffi-gh 2024-03-24 01:14:23 +01:00
parent d2598f8a20
commit 03a49791fa

View file

@ -38,7 +38,7 @@ ui_main!(
.with_align((Alignment::Center, Alignment::Begin))
.with_direction(Direction::Horizontal)
.with_gap(5.)
.with_background_frame(FrameRect::color((0.1, 0.1, 0.1)))
.with_background_frame((0.1, 0.1, 0.1))
.with_wrap(true)
.with_children(|ui| {
Text::new(format!("Number of images: {counter}"))