summaryrefslogtreecommitdiffstats
path: root/native/src/widget/toggler.rs
diff options
context:
space:
mode:
authorLibravatar Robert Krahn <robert.krahn@gmail.com>2022-11-03 00:35:01 +0100
committerLibravatar Robert Krahn <robert.krahn@gmail.com>2022-11-03 22:48:26 +0100
commitc0596179bd8582e4f4b5289cdeee8de4fa3de464 (patch)
treeb1ed80cf49aa846ba7a93cc97128c3ec6eadd123 /native/src/widget/toggler.rs
parentd222b5c8b0befab665c20ba0112b28199df0ae44 (diff)
downloadiced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.tar.gz
iced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.tar.bz2
iced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.zip
non uniform border radius for quads
Diffstat (limited to 'native/src/widget/toggler.rs')
-rw-r--r--native/src/widget/toggler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/toggler.rs b/native/src/widget/toggler.rs
index 7893f78c..c5c2d82a 100644
--- a/native/src/widget/toggler.rs
+++ b/native/src/widget/toggler.rs
@@ -278,7 +278,7 @@ where
renderer.fill_quad(
renderer::Quad {
bounds: toggler_background_bounds,
- border_radius,
+ border_radius: border_radius.into(),
border_width: 1.0,
border_color: style
.background_border
@@ -302,7 +302,7 @@ where
renderer.fill_quad(
renderer::Quad {
bounds: toggler_foreground_bounds,
- border_radius,
+ border_radius: border_radius.into(),
border_width: 1.0,
border_color: style
.foreground_border