colors

@Composable
fun colors(): SliderColors

Creates a SliderColors that represents the different colors used in parts of the Slider in different states.


@Composable
fun colors(thumbColor: Color = Color.Unspecified, activeTrackColor: Color = Color.Unspecified, activeTickColor: Color = Color.Unspecified, inactiveTrackColor: Color = Color.Unspecified, inactiveTickColor: Color = Color.Unspecified, disabledThumbColor: Color = Color.Unspecified, disabledActiveTrackColor: Color = Color.Unspecified, disabledActiveTickColor: Color = Color.Unspecified, disabledInactiveTrackColor: Color = Color.Unspecified, disabledInactiveTickColor: Color = Color.Unspecified): SliderColors

Creates a SliderColors that represents the different colors used in parts of the Slider in different states.

For the name references below the words "active" and "inactive" are used. Active part of the slider is filled with progress, so if slider's progress is 30% out of 100%, left (or right in RTL) 30% of the track will be active, while the rest is inactive.

Parameters

thumbColor

thumb color when enabled

activeTrackColor

color of the track in the part that is "active", meaning that the thumb is ahead of it

activeTickColor

colors to be used to draw tick marks on the active track, if steps is specified

inactiveTrackColor

color of the track in the part that is "inactive", meaning that the thumb is before it

inactiveTickColor

colors to be used to draw tick marks on the inactive track, if steps are specified on the Slider is specified

disabledThumbColor

thumb colors when disabled

disabledActiveTrackColor

color of the track in the "active" part when the Slider is disabled

disabledActiveTickColor

colors to be used to draw tick marks on the active track when Slider is disabled and when steps are specified on it

disabledInactiveTrackColor

color of the track in the "inactive" part when the Slider is disabled

disabledInactiveTickColor

colors to be used to draw tick marks on the inactive part of the track when Slider is disabled and when steps are specified on it