pub struct SliderTheme {
pub value_indicator_text_style: Option<TextStyle>,
pub active_track_color: Option<Color>,
pub inactive_track_color: Option<Color>,
pub thumb_color: Option<Color>,
pub thumb_border_color: Option<Color>,
pub thumb_elevation: Option<f32>,
pub pressed_thumb_elevation: Option<f32>,
}Expand description
Defaults for Slider and RangeSlider.
Fields§
§value_indicator_text_style: Option<TextStyle>The value bubble’s type. The reference calls it the value indicator and sets it in
labelLarge.
active_track_color: Option<Color>The travelled part of the track.
inactive_track_color: Option<Color>The part still to travel.
thumb_color: Option<Color>The thumb’s fill.
thumb_border_color: Option<Color>The ring around the thumb.
thumb_elevation: Option<f32>How far a thumb sits off the track at rest — a slider’s, and each of a range slider’s. Unset, the reference’s 1.
pressed_thumb_elevation: Option<f32>And while it is held. Unset, the reference’s 6.
Trait Implementations§
Source§impl Clone for SliderTheme
impl Clone for SliderTheme
impl Copy for SliderTheme
Source§impl Debug for SliderTheme
impl Debug for SliderTheme
Source§impl Default for SliderTheme
impl Default for SliderTheme
Source§impl PartialEq for SliderTheme
impl PartialEq for SliderTheme
impl StructuralPartialEq for SliderTheme
Auto Trait Implementations§
impl Freeze for SliderTheme
impl RefUnwindSafe for SliderTheme
impl Send for SliderTheme
impl Sync for SliderTheme
impl Unpin for SliderTheme
impl UnsafeUnpin for SliderTheme
impl UnwindSafe for SliderTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more