Rename Rail::size to width

This commit is contained in:
Héctor Ramón Jiménez 2023-04-12 05:27:32 +02:00
parent 6e6804c5c9
commit 9b39a17628
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 11 additions and 11 deletions

View file

@ -15,8 +15,8 @@ pub struct Appearance {
pub struct Rail {
/// The colors of the rail of the slider.
pub colors: (Color, Color),
/// The height of a slider rail and the width of a vertical slider.
pub size: f32,
/// The width of the stroke of a slider rail.
pub width: f32,
/// The border radius of the slider.
pub border_radius: f32,
}

View file

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