From f41eacc3dcc849f43c875872259ef8106e10be03 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 23 Nov 2020 00:31:50 +0100 Subject: Use `f32` for `border_width` and `border_radius` --- examples/scrollable/src/style.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/scrollable/src') diff --git a/examples/scrollable/src/style.rs b/examples/scrollable/src/style.rs index 24d711ac..ae449141 100644 --- a/examples/scrollable/src/style.rs +++ b/examples/scrollable/src/style.rs @@ -114,7 +114,7 @@ mod dark { radio::Style { background: SURFACE.into(), dot_color: ACTIVE, - border_width: 1, + border_width: 1.0, border_color: ACTIVE, } } @@ -137,13 +137,13 @@ mod dark { ..SCROLLBAR } .into(), - border_radius: 2, - border_width: 0, + border_radius: 2.0, + border_width: 0.0, border_color: Color::TRANSPARENT, scroller: scrollable::Scroller { color: Color { a: 0.7, ..SCROLLER }, - border_radius: 2, - border_width: 0, + border_radius: 2.0, + border_width: 0.0, border_color: Color::TRANSPARENT, }, } @@ -182,7 +182,7 @@ mod dark { rule::Style { color: SURFACE, width: 2, - radius: 1, + radius: 1.0, fill_mode: rule::FillMode::Percent(30.0), } } -- cgit