summaryrefslogtreecommitdiffstats
path: root/wgpu/src
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src')
-rw-r--r--wgpu/src/renderer/widget/button.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/renderer/widget/button.rs b/wgpu/src/renderer/widget/button.rs
index d00a43a5..63a53473 100644
--- a/wgpu/src/renderer/widget/button.rs
+++ b/wgpu/src/renderer/widget/button.rs
@@ -51,8 +51,8 @@ impl iced_native::button::Renderer for Renderer {
primitives: vec![
Primitive::Quad {
bounds: Rectangle {
- x: bounds.x + 1.0,
- y: bounds.y + styling.shadow_offset,
+ x: bounds.x + styling.shadow_offset.x,
+ y: bounds.y + styling.shadow_offset.y,
..bounds
},
background: Background::Color(
@@ -66,8 +66,8 @@ impl iced_native::button::Renderer for Renderer {
bounds,
background,
border_radius: styling.border_radius,
- border_width: 0,
- border_color: Color::TRANSPARENT,
+ border_width: styling.border_width,
+ border_color: styling.border_color,
},
content,
],