Skip to main content

SliderTheme

Customizes the appearance of descendant Slider controls.

Properties

Properties

active_tick_mark_colorclass-attributeinstance-attribute

active_tick_mark_color: Optional[ColorValue] = None

The color of the track's tick marks that are drawn between the flet.Slider.min position and the current thumb position.

active_track_colorclass-attributeinstance-attribute

active_track_color: Optional[ColorValue] = None

Overrides the default value for flet.Slider.active_color.

disabled_active_tick_mark_colorclass-attributeinstance-attribute

disabled_active_tick_mark_color: Optional[ColorValue] = None

The color of the track's tick marks that are drawn between the current thumb osition and the flet.Slider.max position when the Slider is disabled.

disabled_active_track_colorclass-attributeinstance-attribute

disabled_active_track_color: Optional[ColorValue] = None

The color of the Slider track between the flet.Slider.min position and the current thumb position when the Slider is disabled.

disabled_inactive_tick_mark_colorclass-attributeinstance-attribute

disabled_inactive_tick_mark_color: Optional[ColorValue] = None

The color of the track's tick marks that are drawn between the current thumb position and the flet.Slider.max position when the Slider is disabled.

disabled_inactive_track_colorclass-attributeinstance-attribute

disabled_inactive_track_color: Optional[ColorValue] = None

The color of the Slider track between the current thumb position and the flet.Slider.max position when the Slider is disabled.

disabled_secondary_active_track_colorclass-attributeinstance-attribute

disabled_secondary_active_track_color: Optional[ColorValue] = None

The color of the Slider track between the current thumb position and the flet.Slider.secondary_track_value position when the Slider is disabled.

disabled_thumb_colorclass-attributeinstance-attribute

disabled_thumb_color: Optional[ColorValue] = None

The color given to the thumb to draw itself with when the Slider is disabled.

inactive_tick_mark_colorclass-attributeinstance-attribute

inactive_tick_mark_color: Optional[ColorValue] = None

The color of the track's tick marks that are drawn between the current thumb position and the flet.Slider.max position.

inactive_track_colorclass-attributeinstance-attribute

inactive_track_color: Optional[ColorValue] = None

Overrides the default value for flet.Slider.inactive_color.

interactionclass-attributeinstance-attribute

interaction: Optional[SliderInteraction] = None

Overrides the default value for flet.Slider.interaction.

min_thumb_separationclass-attributeinstance-attribute

min_thumb_separation: Optional[Number] = None

Limits the thumb's separation distance.

Use this only if you want to control the visual appearance of the thumbs in terms of a logical pixel value. This can be done when you want a specific look for thumbs when they are close together. To limit with the real values, rather than logical pixels, the values can be restricted by the parent.

mouse_cursorclass-attributeinstance-attribute

mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None

Overrides the default value for flet.Slider.mouse_cursor.

overlapping_shape_stroke_colorclass-attributeinstance-attribute

overlapping_shape_stroke_color: Optional[ColorValue] = None

The color given to the perimeter of the top range thumbs of a RangeSlider when the thumbs are overlapping and the top range value indicator when the value indicators are overlapping.

overlay_colorclass-attributeinstance-attribute

overlay_color: Optional[ColorValue] = None

Overrides the default value for flet.Slider.overlay_color.

paddingclass-attributeinstance-attribute

padding: Optional[PaddingValue] = None

Overrides the default value for flet.Slider.padding.

secondary_active_track_colorclass-attributeinstance-attribute

secondary_active_track_color: Optional[ColorValue] = None

Overrides the default value for flet.Slider.secondary_active_color.

thumb_colorclass-attributeinstance-attribute

thumb_color: Optional[ColorValue] = None

Overrides the default value for flet.Slider.thumb_color.

thumb_sizeclass-attributeinstance-attribute

thumb_size: Optional[ControlStateValue[Size]] = None

The size of the handle thumb shape thumb.

track_gapclass-attributeinstance-attribute

track_gap: Optional[Number] = None

The size of the gap between the active and inactive tracks of the gapped slider track shape.

track_heightclass-attributeinstance-attribute

track_height: Optional[Number] = None

The height of the Slider track.

value_indicator_colorclass-attributeinstance-attribute

value_indicator_color: Optional[ColorValue] = None

The color given to the Slider's value indicator to draw itself with.

value_indicator_stroke_colorclass-attributeinstance-attribute

value_indicator_stroke_color: Optional[ColorValue] = None

The color given to the value indicator shape stroke.

value_indicator_text_styleclass-attributeinstance-attribute

value_indicator_text_style: Optional[TextStyle] = None

The TextStyle for the text on the value indicator.

year_2023class-attributeinstance-attribute

year_2023: bool = False

Overrides the default value for flet.Slider.year_2023.