summaryrefslogtreecommitdiffstats
path: root/examples/scrollable
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-23 00:31:50 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-23 00:31:50 +0100
commitf41eacc3dcc849f43c875872259ef8106e10be03 (patch)
treeb3aafbca00d799842e56eb3bbfc4a9292248f816 /examples/scrollable
parentea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff (diff)
downloadiced-f41eacc3dcc849f43c875872259ef8106e10be03.tar.gz
iced-f41eacc3dcc849f43c875872259ef8106e10be03.tar.bz2
iced-f41eacc3dcc849f43c875872259ef8106e10be03.zip
Use `f32` for `border_width` and `border_radius`
Diffstat (limited to 'examples/scrollable')
-rw-r--r--examples/scrollable/src/style.rs12
1 files changed, 6 insertions, 6 deletions
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),
}
}