pub struct SliderPalette {
pub active_track: Color,
pub inactive_track: Color,
pub secondary_track: Color,
pub thumb: Color,
pub thumb_border: Option<Color>,
pub active_tick_mark: Color,
pub inactive_tick_mark: Color,
}Expand description
A slider’s colours, resolved for one paint: the widget’s, then the theme’s, then the reference’s — the disabled ones when it is disabled.
Fields§
§active_track: ColorThe travelled part, or a range slider’s span between its thumbs.
inactive_track: ColorThe rest of the track.
secondary_track: ColorA slider’s secondary value, from the thumb towards it.
thumb: ColorThe thumb’s fill.
thumb_border: Option<Color>A ring around the thumb, if one is asked for.
active_tick_mark: ColorA tick mark on the active part.
inactive_tick_mark: ColorA tick mark on the rest.
Trait Implementations§
Source§impl Clone for SliderPalette
impl Clone for SliderPalette
impl Copy for SliderPalette
Source§impl Debug for SliderPalette
impl Debug for SliderPalette
Source§impl PartialEq for SliderPalette
impl PartialEq for SliderPalette
impl StructuralPartialEq for SliderPalette
Auto Trait Implementations§
impl Freeze for SliderPalette
impl RefUnwindSafe for SliderPalette
impl Send for SliderPalette
impl Sync for SliderPalette
impl Unpin for SliderPalette
impl UnsafeUnpin for SliderPalette
impl UnwindSafe for SliderPalette
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