summaryrefslogtreecommitdiffstats
path: root/widget/src/vertical_slider.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 12:25:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-20 12:25:07 +0100
commit370b2f6df799c948188d3949e34112258b2a8498 (patch)
tree925d98d94be0e82c34377a7e3f697eafc8d095a2 /widget/src/vertical_slider.rs
parentb7b457a575cdd103915994f640c50262ce30a7c5 (diff)
downloadiced-370b2f6df799c948188d3949e34112258b2a8498.tar.gz
iced-370b2f6df799c948188d3949e34112258b2a8498.tar.bz2
iced-370b2f6df799c948188d3949e34112258b2a8498.zip
Use `Default` implementation of `renderer::Quad`
Diffstat (limited to 'widget/src/vertical_slider.rs')
-rw-r--r--widget/src/vertical_slider.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs
index 4fdad861..7a461b08 100644
--- a/widget/src/vertical_slider.rs
+++ b/widget/src/vertical_slider.rs
@@ -13,8 +13,7 @@ use crate::core::renderer;
use crate::core::touch;
use crate::core::widget::tree::{self, Tree};
use crate::core::{
- Clipboard, Color, Element, Length, Pixels, Point, Rectangle, Shell, Size,
- Widget,
+ Clipboard, Element, Length, Pixels, Point, Rectangle, Shell, Size, Widget,
};
/// An vertical bar and a handle that selects a single value from a range of
@@ -398,9 +397,7 @@ pub fn draw<T, R>(
height: offset + handle_width / 2.0,
},
border_radius: style.rail.border_radius,
- border_width: 0.0,
- border_color: Color::TRANSPARENT,
- shadow: Default::default(),
+ ..renderer::Quad::default()
},
style.rail.colors.1,
);
@@ -414,9 +411,7 @@ pub fn draw<T, R>(
height: bounds.height - offset - handle_width / 2.0,
},
border_radius: style.rail.border_radius,
- border_width: 0.0,
- border_color: Color::TRANSPARENT,
- shadow: Default::default(),
+ ..renderer::Quad::default()
},
style.rail.colors.0,
);
@@ -432,7 +427,7 @@ pub fn draw<T, R>(
border_radius: handle_border_radius,
border_width: style.handle.border_width,
border_color: style.handle.border_color,
- shadow: Default::default(),
+ ..renderer::Quad::default()
},
style.handle.color,
);