diff options
author | 2023-04-12 05:27:32 +0200 | |
---|---|---|
committer | 2023-04-12 05:27:32 +0200 | |
commit | 9b39a17628e92b66ac3649e879478ed23635fa76 (patch) | |
tree | 51f37d31de580235a0daf14ca37404b292fe2a82 /native/src/widget/slider.rs | |
parent | 6e6804c5c9d0dba921f2e25d2c888b136d22d35e (diff) | |
download | iced-9b39a17628e92b66ac3649e879478ed23635fa76.tar.gz iced-9b39a17628e92b66ac3649e879478ed23635fa76.tar.bz2 iced-9b39a17628e92b66ac3649e879478ed23635fa76.zip |
Rename `Rail::size` to `width`
Diffstat (limited to 'native/src/widget/slider.rs')
-rw-r--r-- | native/src/widget/slider.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index 5b26ae01..69c06140 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -401,9 +401,9 @@ pub fn draw<T, R>( renderer::Quad { bounds: Rectangle { x: bounds.x, - y: rail_y - style.rail.size / 2.0, + y: rail_y - style.rail.width / 2.0, width: offset, - height: style.rail.size, + height: style.rail.width, }, border_radius: [ style.rail.border_radius, @@ -422,9 +422,9 @@ pub fn draw<T, R>( renderer::Quad { bounds: Rectangle { x: bounds.x + offset, - y: rail_y - style.rail.size / 2.0, + y: rail_y - style.rail.width / 2.0, width: bounds.width - offset, - height: style.rail.size, + height: style.rail.width, }, border_radius: [ 0.0, |