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:
parent
1de7da1091
commit
52c84c4975
4 changed files with 4 additions and 31 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue