mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-29 02:18:40 -06:00
simplify with_background_frame call in example
This commit is contained in:
parent
f7d8166513
commit
5cb696d3f6
|
@ -38,7 +38,7 @@ ui_main!(
|
||||||
.with_align((Alignment::Center, Alignment::Begin))
|
.with_align((Alignment::Center, Alignment::Begin))
|
||||||
.with_direction(Direction::Horizontal)
|
.with_direction(Direction::Horizontal)
|
||||||
.with_gap(5.)
|
.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_wrap(true)
|
||||||
.with_children(|ui| {
|
.with_children(|ui| {
|
||||||
Text::new(format!("Number of images: {counter}"))
|
Text::new(format!("Number of images: {counter}"))
|
||||||
|
|
Loading…
Reference in a new issue