SliderColors


Represents the color used by a Slider in different states.

Summary

Public constructors

SliderColors(
    thumbColor: Color,
    activeTrackColor: Color,
    activeTickColor: Color,
    inactiveTrackColor: Color,
    inactiveTickColor: Color,
    disabledThumbColor: Color,
    disabledActiveTrackColor: Color,
    disabledActiveTickColor: Color,
    disabledInactiveTrackColor: Color,
    disabledInactiveTickColor: Color
)

create an instance with arbitrary colors.

Cmn

Public functions

SliderColors
copy(
    thumbColor: Color,
    activeTrackColor: Color,
    activeTickColor: Color,
    inactiveTrackColor: Color,
    inactiveTickColor: Color,
    disabledThumbColor: Color,
    disabledActiveTrackColor: Color,
    disabledActiveTickColor: Color,
    disabledInactiveTrackColor: Color,
    disabledInactiveTickColor: Color
)

Returns a copy of this SelectableChipColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

thumb colors when disabled

Cmn
Color

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

Cmn
Color

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

Cmn
Color

thumb color when enabled

Cmn

Public constructors

SliderColors

SliderColors(
    thumbColor: Color,
    activeTrackColor: Color,
    activeTickColor: Color,
    inactiveTrackColor: Color,
    inactiveTickColor: Color,
    disabledThumbColor: Color,
    disabledActiveTrackColor: Color,
    disabledActiveTickColor: Color,
    disabledInactiveTrackColor: Color,
    disabledInactiveTickColor: Color
)

create an instance with arbitrary colors. See SliderDefaults.colors for the default implementation that follows Material specifications.

Parameters
thumbColor: Color

thumb color when enabled

activeTrackColor: Color

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

activeTickColor: Color

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

inactiveTrackColor: Color

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

inactiveTickColor: Color

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

disabledThumbColor: Color

thumb colors when disabled

disabledActiveTrackColor: Color

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

disabledActiveTickColor: Color

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

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

disabledInactiveTickColor: Color

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

Public functions

copy

fun copy(
    thumbColor: Color = this.thumbColor,
    activeTrackColor: Color = this.activeTrackColor,
    activeTickColor: Color = this.activeTickColor,
    inactiveTrackColor: Color = this.inactiveTrackColor,
    inactiveTickColor: Color = this.inactiveTickColor,
    disabledThumbColor: Color = this.disabledThumbColor,
    disabledActiveTrackColor: Color = this.disabledActiveTrackColor,
    disabledActiveTickColor: Color = this.disabledActiveTickColor,
    disabledInactiveTrackColor: Color = this.disabledInactiveTrackColor,
    disabledInactiveTickColor: Color = this.disabledInactiveTickColor
): SliderColors

Returns a copy of this SelectableChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

activeTickColor

val activeTickColorColor

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

activeTrackColor

val activeTrackColorColor

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

disabledActiveTickColor

val disabledActiveTickColorColor

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

disabledActiveTrackColor

val disabledActiveTrackColorColor

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

disabledInactiveTickColor

val disabledInactiveTickColorColor

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

disabledInactiveTrackColor

val disabledInactiveTrackColorColor

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

disabledThumbColor

val disabledThumbColorColor

thumb colors when disabled

inactiveTickColor

val inactiveTickColorColor

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

inactiveTrackColor

val inactiveTrackColorColor

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

thumbColor

val thumbColorColor

thumb color when enabled