pub struct SliderTheme {Show 15 fields
pub fill_color: Option<Rgba>,
pub track_color: Option<Rgba>,
pub thumb_color: Option<Rgba>,
pub track_height: Option<f32>,
pub thumb_diameter: Option<f32>,
pub tick_mark_length: Option<f32>,
pub disabled_opacity: Option<f32>,
pub thumb_hover_color: Option<Rgba>,
pub disabled_fill_color: Option<Rgba>,
pub disabled_track_color: Option<Rgba>,
pub disabled_thumb_color: Option<Rgba>,
pub thumb_border_color: Option<Rgba>,
pub thumb_border_line_width: Option<f32>,
pub thumb_hover_border_color: Option<Rgba>,
pub thumb_focus_border_color: Option<Rgba>,
}Expand description
Slider control colors and geometry.
Fields§
§fill_color: Option<Rgba>Filled portion of the slider track.
track_color: Option<Rgba>Unfilled track color.
thumb_color: Option<Rgba>Thumb (handle) color.
track_height: Option<f32>Track height in logical pixels.
thumb_diameter: Option<f32>Thumb diameter in logical pixels.
tick_mark_length: Option<f32>Tick mark length in logical pixels.
disabled_opacity: Option<f32>Opacity multiplier when disabled (0.0-1.0), applied to the whole
widget on top of its disabled colours (see
ThemeDefaults::disabled_opacity).
thumb_hover_color: Option<Rgba>Thumb color on hover.
disabled_fill_color: Option<Rgba>Filled track color when disabled; None, the enabled colour (as for
the two below).
disabled_track_color: Option<Rgba>Unfilled track color when disabled.
disabled_thumb_color: Option<Rgba>Thumb color when disabled.
thumb_border_color: Option<Rgba>The handle’s outline at rest, thumb_border_line_width wide inside
the handle: Breeze’s Button mixed frameContrast towards
ButtonText. None with the width stated: no line at rest, the
handle keeping its outer size (docs/platform-facts.md §2.9).
thumb_border_line_width: Option<f32>Width of the handle’s outline in logical pixels; 0 draws no outline in
any state, a connector’s own included. None: the connector draws the
handle as it does without this field (its own outline, if any)
(docs/platform-facts.md §2.9).
thumb_hover_border_color: Option<Rgba>The handle’s outline with the pointer on it and while it is dragged,
over the focus outline: Breeze’s hover colour. None:
thumb_border_color (docs/platform-facts.md §2.9).
thumb_focus_border_color: Option<Rgba>The handle’s outline while the slider has the focus, from a click or a
key: Breeze’s focus colour. None: thumb_border_color
(docs/platform-facts.md §2.9).
Implementations§
Source§impl SliderTheme
impl SliderTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.