diff options
Diffstat (limited to 'style/src/slider.rs')
-rw-r--r-- | style/src/slider.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/style/src/slider.rs b/style/src/slider.rs index 4b52fad3..884d3871 100644 --- a/style/src/slider.rs +++ b/style/src/slider.rs @@ -5,11 +5,20 @@ use iced_core::Color; #[derive(Debug, Clone, Copy)] pub struct Appearance { /// The colors of the rail of the slider. - pub rail_colors: (Color, Color), + pub rail: Rail, /// The appearance of the [`Handle`] of the slider. pub handle: Handle, } +/// The appearance of a slider rail +#[derive(Debug, Clone, Copy)] +pub struct Rail { + /// The colors of the rail of the slider. + pub colors: (Color, Color), + /// The width of the stroke of a slider rail. + pub width: f32, +} + /// The appearance of the handle of a slider. #[derive(Debug, Clone, Copy)] pub struct Handle { |