diff options
author | 2023-04-13 05:53:40 +0200 | |
---|---|---|
committer | 2023-04-13 05:53:40 +0200 | |
commit | 52c84c4975d75baf313243d422d96581daca19bf (patch) | |
tree | 510da2f730af56b364438176b7b44a94369e052c /native | |
parent | 1de7da1091c697e4f3f746b5df0e02aff7e2bc3e (diff) | |
download | iced-52c84c4975d75baf313243d422d96581daca19bf.tar.gz iced-52c84c4975d75baf313243d422d96581daca19bf.tar.bz2 iced-52c84c4975d75baf313243d422d96581daca19bf.zip |
Remove `border_radius` support for `slider::Rail`
Our current quad shader may produce weird-looking results with
non-integral scaling factors.
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/slider.rs | 16 | ||||
-rw-r--r-- | native/src/widget/vertical_slider.rs | 16 |
2 files changed, 4 insertions, 28 deletions
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index 69c06140..199dc9b3 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -405,13 +405,7 @@ pub fn draw<T, R>( width: offset, height: style.rail.width, }, - border_radius: [ - style.rail.border_radius, - 0.0, - 0.0, - style.rail.border_radius, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, @@ -426,13 +420,7 @@ pub fn draw<T, R>( width: bounds.width - offset, height: style.rail.width, }, - border_radius: [ - 0.0, - style.rail.border_radius, - style.rail.border_radius, - 0.0, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, diff --git a/native/src/widget/vertical_slider.rs b/native/src/widget/vertical_slider.rs index a06a200f..b445b9ec 100644 --- a/native/src/widget/vertical_slider.rs +++ b/native/src/widget/vertical_slider.rs @@ -398,13 +398,7 @@ pub fn draw<T, R>( width: style.rail.width, height: offset, }, - border_radius: [ - style.rail.border_radius, - style.rail.border_radius, - 0.0, - 0.0, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, @@ -419,13 +413,7 @@ pub fn draw<T, R>( width: style.rail.width, height: bounds.height - offset, }, - border_radius: [ - 0.0, - 0.0, - style.rail.border_radius, - style.rail.border_radius, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, |