From 5cb696d3f617d756b74b97198591506ef1c9b01d Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 24 Mar 2024 01:14:23 +0100 Subject: [PATCH] simplify with_background_frame call in example --- hui-examples/examples/ui_test_6_slider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hui-examples/examples/ui_test_6_slider.rs b/hui-examples/examples/ui_test_6_slider.rs index eab6ea2..cf8fdf0 100644 --- a/hui-examples/examples/ui_test_6_slider.rs +++ b/hui-examples/examples/ui_test_6_slider.rs @@ -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}"))