summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-12-02 21:10:44 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-02 21:10:44 +0100
commit91d5516474dcb9494987f264783ad1400781b025 (patch)
tree11376e29c3c1358f7576e502366a990db9fb1c08 /native/src/widget/button.rs
parentda244ff8048e0b339c1502372894a2460a637241 (diff)
parent60e41666d0e203d9777de981121c39f569bc3a7b (diff)
downloadiced-91d5516474dcb9494987f264783ad1400781b025.tar.gz
iced-91d5516474dcb9494987f264783ad1400781b025.tar.bz2
iced-91d5516474dcb9494987f264783ad1400781b025.zip
Merge pull request #1506 from rksm/non-uniform-border-radius-for-quads
non uniform border radius for quads
Diffstat (limited to '')
-rw-r--r--native/src/widget/button.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index d68e01c7..bbd9451c 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -393,7 +393,7 @@ where
y: bounds.y + styling.shadow_offset.y,
..bounds
},
- border_radius: styling.border_radius,
+ border_radius: styling.border_radius.into(),
border_width: 0.0,
border_color: Color::TRANSPARENT,
},
@@ -404,7 +404,7 @@ where
renderer.fill_quad(
renderer::Quad {
bounds,
- border_radius: styling.border_radius,
+ border_radius: styling.border_radius.into(),
border_width: styling.border_width,
border_color: styling.border_color,
},