Remove border_radius support for slider::Rail

Our current quad shader may produce weird-looking results with
non-integral scaling factors.
This commit is contained in:
Héctor Ramón Jiménez 2023-04-13 05:53:40 +02:00
parent 1de7da1091
commit 52c84c4975
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 4 additions and 31 deletions

View file

@ -17,8 +17,6 @@ pub struct Rail {
pub colors: (Color, Color),
/// The width of the stroke of a slider rail.
pub width: f32,
/// The border radius of the slider.
pub border_radius: f32,
}
/// The appearance of the handle of a slider.

View file

@ -422,7 +422,6 @@ impl slider::StyleSheet for Theme {
palette.primary.base.color,
),
width: 2.0,
border_radius: 2.0,
},
handle: slider::Handle {
color: palette.background.base.color,