diff --git a/hui-examples/examples/ui_test_7_9patch.rs b/hui-examples/examples/ui_test_7_9patch.rs index 2b4a131..b021c70 100644 --- a/hui-examples/examples/ui_test_7_9patch.rs +++ b/hui-examples/examples/ui_test_7_9patch.rs @@ -14,12 +14,11 @@ mod boilerplate; ui_main!( "hUI: 9-Patch demo", init: |_| { - Instant::now() + }, - run: |ui, size, instant| { - let width_ratio = 0.5 + 0.5 * instant.elapsed().as_secs_f32().sin().powi(2); + run: |ui, size, _| { Container::default() - .with_size(size!(width_ratio/, 100%)) + .with_size(size!(100%)) .with_direction(Direction::Horizontal) .with_align(Alignment::Center) .with_padding(5.) @@ -30,8 +29,7 @@ ui_main!( FillRect::default() .with_size(size!(300, 100)) .with_frame(frame_rect! { - color: color::DARK_RED, - corner_radius: 8. + color: color::RED }) .add_child(ui); })