Source set: Common
public class SwitchColors public constructor(
public val checkedThumbColor: Color,
public val checkedTrackColor: Color,
public val checkedBorderColor: Color,
public val checkedIconColor: Color,
public val uncheckedThumbColor: Color,
public val uncheckedTrackColor: Color,
public val uncheckedBorderColor: Color,
public val uncheckedIconColor: Color,
public val disabledCheckedThumbColor: Color,
public val disabledCheckedTrackColor: Color,
public val disabledCheckedBorderColor: Color,
public val disabledCheckedIconColor: Color,
public val disabledUncheckedThumbColor: Color,
public val disabledUncheckedTrackColor: Color,
public val disabledUncheckedBorderColor: Color,
public val disabledUncheckedIconColor: Color,
)
Represents the colors used by a Switch in different states
Parameters
| checkedThumbColor | the color used for the thumb when enabled and checked |
| checkedTrackColor | the color used for the track when enabled and checked |
| checkedBorderColor | the color used for the border when enabled and checked |
| checkedIconColor | the color used for the icon when enabled and checked |
| uncheckedThumbColor | the color used for the thumb when enabled and unchecked |
| uncheckedTrackColor | the color used for the track when enabled and unchecked |
| uncheckedBorderColor | the color used for the border when enabled and unchecked |
| uncheckedIconColor | the color used for the icon when enabled and unchecked |
| disabledCheckedThumbColor | the color used for the thumb when disabled and checked |
| disabledCheckedTrackColor | the color used for the track when disabled and checked |
| disabledCheckedBorderColor | the color used for the border when disabled and checked |
| disabledCheckedIconColor | the color used for the icon when disabled and checked |
| disabledUncheckedThumbColor | the color used for the thumb when disabled and unchecked |
| disabledUncheckedTrackColor | the color used for the track when disabled and unchecked |
| disabledUncheckedBorderColor | the color used for the border when disabled and unchecked |
| disabledUncheckedIconColor | the color used for the icon when disabled and unchecked |
Functions
copy
Source set: Common
public fun copy(
checkedThumbColor: Color = this.checkedThumbColor,
checkedTrackColor: Color = this.checkedTrackColor,
checkedBorderColor: Color = this.checkedBorderColor,
checkedIconColor: Color = this.checkedIconColor,
uncheckedThumbColor: Color = this.uncheckedThumbColor,
uncheckedTrackColor: Color = this.uncheckedTrackColor,
uncheckedBorderColor: Color = this.uncheckedBorderColor,
uncheckedIconColor: Color = this.uncheckedIconColor,
disabledCheckedThumbColor: Color = this.disabledCheckedThumbColor,
disabledCheckedTrackColor: Color = this.disabledCheckedTrackColor,
disabledCheckedBorderColor: Color = this.disabledCheckedBorderColor,
disabledCheckedIconColor: Color = this.disabledCheckedIconColor,
disabledUncheckedThumbColor: Color = this.disabledUncheckedThumbColor,
disabledUncheckedTrackColor: Color = this.disabledUncheckedTrackColor,
disabledUncheckedBorderColor: Color = this.disabledUncheckedBorderColor,
disabledUncheckedIconColor: Color = this.disabledUncheckedIconColor,
): SwitchColors
Returns a copy of this SwitchColors, 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