diff options
| author | 2022-05-26 23:07:34 +0200 | |
|---|---|---|
| committer | 2022-05-26 23:07:34 +0200 | |
| commit | cf0230072c01ea9523f4d98a3656f5c975b3f347 (patch) | |
| tree | ed24c6b90c6e319129e5fe963d50593846aaab72 /pure/src/widget/slider.rs | |
| parent | 7f3b7075db68a215f4331b4bfba1c8ddd1c4d7f3 (diff) | |
| download | iced-cf0230072c01ea9523f4d98a3656f5c975b3f347.tar.gz iced-cf0230072c01ea9523f4d98a3656f5c975b3f347.tar.bz2 iced-cf0230072c01ea9523f4d98a3656f5c975b3f347.zip | |
Rename `Variant` to `Style` and `Style` to `Appearance`
Diffstat (limited to '')
| -rw-r--r-- | pure/src/widget/slider.rs | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/pure/src/widget/slider.rs b/pure/src/widget/slider.rs index a6deda41..9bc32f08 100644 --- a/pure/src/widget/slider.rs +++ b/pure/src/widget/slider.rs @@ -11,7 +11,7 @@ use iced_native::{Clipboard, Layout, Length, Point, Rectangle, Shell, Size};  use std::ops::RangeInclusive; -pub use iced_style::slider::{Handle, HandleShape, Style, StyleSheet}; +pub use iced_style::slider::{Appearance, Handle, HandleShape, StyleSheet};  /// An horizontal bar and a handle that selects a single value from a range of  /// values. @@ -49,7 +49,7 @@ where      on_release: Option<Message>,      width: Length,      height: u16, -    variant: <Renderer::Theme as StyleSheet>::Variant, +    style: <Renderer::Theme as StyleSheet>::Style,  }  impl<'a, T, Message, Renderer> Slider<'a, T, Message, Renderer> @@ -94,7 +94,7 @@ where              on_release: None,              width: Length::Fill,              height: Self::DEFAULT_HEIGHT, -            variant: Default::default(), +            style: Default::default(),          }      } @@ -124,9 +124,9 @@ where      /// Sets the style of the [`Slider`].      pub fn style(          mut self, -        variant: impl Into<<Renderer::Theme as StyleSheet>::Variant>, +        style: impl Into<<Renderer::Theme as StyleSheet>::Style>,      ) -> Self { -        self.variant = variant.into(); +        self.style = style.into();          self      } @@ -216,7 +216,7 @@ where              self.value,              &self.range,              theme, -            self.variant, +            self.style,          )      } | 
