Source set: Common
public class SliderColors(
public val thumbColor: Color,
public val activeTrackColor: Color,
public val activeTickColor: Color,
public val inactiveTrackColor: Color,
public val inactiveTickColor: Color,
public val disabledThumbColor: Color,
public val disabledActiveTrackColor: Color,
public val disabledActiveTickColor: Color,
public val disabledInactiveTrackColor: Color,
public val disabledInactiveTickColor: Color,
)
Represents the color used by a Slider in different states.
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 |
Functions
copy
Source set: Common
public 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
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int