We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
quad
Slider
1 parent ee0dd4c commit 66d4decCopy full SHA for 66d4dec
2 files changed
widget/src/slider.rs
@@ -367,7 +367,6 @@ pub fn draw<T, R>(
367
} else {
368
style_sheet.active(style)
369
};
370
- let border_radius: [f32; 4] = style.rail.border_radius.into();
371
372
let (handle_width, handle_height, handle_border_radius) =
373
match style.handle.shape {
@@ -404,8 +403,7 @@ pub fn draw<T, R>(
404
403
width: offset + handle_width / 2.0,
405
height: style.rail.width,
406
},
407
- border_radius: [border_radius[0], 0.0, 0.0, border_radius[3]]
408
- .into(),
+ border_radius: style.rail.border_radius,
409
border_width: 0.0,
410
border_color: Color::TRANSPARENT,
411
@@ -420,8 +418,7 @@ pub fn draw<T, R>(
420
418
width: bounds.width - offset - handle_width / 2.0,
421
419
422
423
- border_radius: [0.0, border_radius[1], border_radius[2], 0.0]
424
425
426
427
widget/src/vertical_slider.rs
@@ -365,7 +365,6 @@ pub fn draw<T, R>(
365
366
@@ -402,8 +401,7 @@ pub fn draw<T, R>(
402
401
width: style.rail.width,
height: offset + handle_width / 2.0,
- border_radius: [border_radius[0], border_radius[1], 0.0, 0.0]
@@ -418,8 +416,7 @@ pub fn draw<T, R>(
416
417
height: bounds.height - offset - handle_width / 2.0,
- border_radius: [0.0, 0.0, border_radius[2], border_radius[3]]
0 commit comments