summaryrefslogtreecommitdiffstats
path: root/native/src/widget/vertical_slider.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 05:27:32 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 05:27:32 +0200
commit9b39a17628e92b66ac3649e879478ed23635fa76 (patch)
tree51f37d31de580235a0daf14ca37404b292fe2a82 /native/src/widget/vertical_slider.rs
parent6e6804c5c9d0dba921f2e25d2c888b136d22d35e (diff)
downloadiced-9b39a17628e92b66ac3649e879478ed23635fa76.tar.gz
iced-9b39a17628e92b66ac3649e879478ed23635fa76.tar.bz2
iced-9b39a17628e92b66ac3649e879478ed23635fa76.zip
Rename `Rail::size` to `width`
Diffstat (limited to 'native/src/widget/vertical_slider.rs')
-rw-r--r--native/src/widget/vertical_slider.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/native/src/widget/vertical_slider.rs b/native/src/widget/vertical_slider.rs
index 5fb6022a..a06a200f 100644
--- a/native/src/widget/vertical_slider.rs
+++ b/native/src/widget/vertical_slider.rs
@@ -393,9 +393,9 @@ pub fn draw<T, R>(
renderer.fill_quad(
renderer::Quad {
bounds: Rectangle {
- x: rail_x - style.rail.size / 2.0,
+ x: rail_x - style.rail.width / 2.0,
y: bounds.y,
- width: style.rail.size,
+ width: style.rail.width,
height: offset,
},
border_radius: [
@@ -414,9 +414,9 @@ pub fn draw<T, R>(
renderer.fill_quad(
renderer::Quad {
bounds: Rectangle {
- x: rail_x - style.rail.size / 2.0,
+ x: rail_x - style.rail.width / 2.0,
y: bounds.y + offset,
- width: style.rail.size,
+ width: style.rail.width,
height: bounds.height - offset,
},
border_radius: [