diff options
| author | 2020-01-05 19:29:12 +0100 | |
|---|---|---|
| committer | 2020-01-05 19:29:12 +0100 | |
| commit | 1a0effa961344677daf17b4192243423a154f1bf (patch) | |
| tree | 954d2431d69004c1037d19c3bb930273347df8d4 /wgpu | |
| parent | 2116fbb3c2412030a676c60d65784b9dfa467a0a (diff) | |
| download | iced-1a0effa961344677daf17b4192243423a154f1bf.tar.gz iced-1a0effa961344677daf17b4192243423a154f1bf.tar.bz2 iced-1a0effa961344677daf17b4192243423a154f1bf.zip | |
Add border and shadow styling to `Button`
Diffstat (limited to '')
| -rw-r--r-- | wgpu/src/renderer/widget/button.rs | 8 | 
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,                      ], | 
