From f2202bbf91dd24948749971eefbe471d75c2fee9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 11 Jan 2024 11:48:36 -0700 Subject: [PATCH] Make track rounded --- src/text_box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text_box.rs b/src/text_box.rs index 8251e0f..bdc8856 100644 --- a/src/text_box.rs +++ b/src/text_box.rs @@ -608,7 +608,7 @@ where Point::new(image_position.x + scrollbar_rect.x, image_position.y), Size::new(scrollbar_rect.width, layout.bounds().height), ), - border_radius: 0.0.into(), + border_radius: (scrollbar_rect.width as f32 / 2.0).into(), border_width: 0.0, border_color: Color::TRANSPARENT, },