summaryrefslogtreecommitdiffstats
path: root/examples/custom_widget
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 /examples/custom_widget
parentd222b5c8b0befab665c20ba0112b28199df0ae44 (diff)
downloadiced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.tar.gz
iced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.tar.bz2
iced-c0596179bd8582e4f4b5289cdeee8de4fa3de464.zip
non uniform border radius for quads
Diffstat (limited to 'examples/custom_widget')
-rw-r--r--examples/custom_widget/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/custom_widget/src/main.rs b/examples/custom_widget/src/main.rs
index c37a1a12..f6bb3b1e 100644
--- a/examples/custom_widget/src/main.rs
+++ b/examples/custom_widget/src/main.rs
@@ -61,7 +61,7 @@ mod circle {
renderer.fill_quad(
renderer::Quad {
bounds: layout.bounds(),
- border_radius: self.radius,
+ border_radius: self.radius.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
},