class SwitchColors


Represents the content colors used in Switch in different states.

Summary

Public constructors

SwitchColors(
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: Color,
    uncheckedThumbColor: Color,
    uncheckedThumbIconColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedThumbIconColor: Color,
    disabledUncheckedTrackColor: Color,
    disabledUncheckedTrackBorderColor: Color
)

Public functions

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

Public properties

Color

The thumb color of Switch when enabled and checked.

Color

The thumb icon color of Switch when enabled and checked.

Color

The track border color of Switch when enabled and checked.

Color

The track color of Switch when enabled and checked.

Color

The thumb color of Switch when disabled and checked.

Color

The thumb icon color of Switch when disabled and checked.

Color

The track border color of Switch when disabled and checked.

Color

The track color of Switch when disabled and checked.

Color

The thumb color of Switch when disabled and unchecked.

Color

The thumb icon color of Switch when disabled and unchecked.

Color

The track border color of Switch when disabled and unchecked.

Color

The track color of Switch when disabled and unchecked.

Color

The thumb color of Switch when enabled and unchecked.

Color

The thumb icon color of Switch when enabled and unchecked.

Color

The track border color of Switch when enabled and unchecked.

Color

The track color of Switch when enabled and unchecked.

Public constructors

SwitchColors

SwitchColors(
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: Color,
    uncheckedThumbColor: Color,
    uncheckedThumbIconColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedThumbIconColor: Color,
    disabledUncheckedTrackColor: Color,
    disabledUncheckedTrackBorderColor: Color
)
Parameters
checkedThumbColor: Color

The thumb color of Switch when enabled and checked.

checkedThumbIconColor: Color

The thumb icon color of Switch when enabled and checked.

checkedTrackColor: Color

The track color of Switch when enabled and checked.

checkedTrackBorderColor: Color

The track border color of Switch when enabled and checked.

uncheckedThumbColor: Color

The thumb color of Switch when enabled and unchecked.

uncheckedThumbIconColor: Color

The thumb icon color of Switch when enabled and unchecked.

uncheckedTrackColor: Color

The track color of Switch when enabled and unchecked.

uncheckedTrackBorderColor: Color

The track border color of Switch when enabled and unchecked.

disabledCheckedThumbColor: Color

The thumb color of Switch when disabled and checked.

disabledCheckedThumbIconColor: Color

The thumb icon color of Switch when disabled and checked.

disabledCheckedTrackColor: Color

The track color of Switch when disabled and checked.

disabledCheckedTrackBorderColor: Color

The track border color of Switch when disabled and checked.

disabledUncheckedThumbColor: Color

The thumb color of Switch when disabled and unchecked.

disabledUncheckedThumbIconColor: Color

The thumb icon color of Switch when disabled and unchecked.

disabledUncheckedTrackColor: Color

The track color of Switch when disabled and unchecked.

disabledUncheckedTrackBorderColor: Color

The track border color of Switch when disabled and unchecked.

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedThumbColor

Added in 1.0.0-alpha21
val checkedThumbColorColor

The thumb color of Switch when enabled and checked.

checkedThumbIconColor

Added in 1.0.0-alpha21
val checkedThumbIconColorColor

The thumb icon color of Switch when enabled and checked.

checkedTrackBorderColor

Added in 1.0.0-alpha21
val checkedTrackBorderColorColor

The track border color of Switch when enabled and checked.

checkedTrackColor

Added in 1.0.0-alpha21
val checkedTrackColorColor

The track color of Switch when enabled and checked.

disabledCheckedThumbColor

Added in 1.0.0-alpha21
val disabledCheckedThumbColorColor

The thumb color of Switch when disabled and checked.

disabledCheckedThumbIconColor

Added in 1.0.0-alpha21
val disabledCheckedThumbIconColorColor

The thumb icon color of Switch when disabled and checked.

disabledCheckedTrackBorderColor

Added in 1.0.0-alpha21
val disabledCheckedTrackBorderColorColor

The track border color of Switch when disabled and checked.

disabledCheckedTrackColor

Added in 1.0.0-alpha21
val disabledCheckedTrackColorColor

The track color of Switch when disabled and checked.

disabledUncheckedThumbColor

Added in 1.0.0-alpha21
val disabledUncheckedThumbColorColor

The thumb color of Switch when disabled and unchecked.

disabledUncheckedThumbIconColor

Added in 1.0.0-alpha21
val disabledUncheckedThumbIconColorColor

The thumb icon color of Switch when disabled and unchecked.

disabledUncheckedTrackBorderColor

Added in 1.0.0-alpha21
val disabledUncheckedTrackBorderColorColor

The track border color of Switch when disabled and unchecked.

disabledUncheckedTrackColor

Added in 1.0.0-alpha21
val disabledUncheckedTrackColorColor

The track color of Switch when disabled and unchecked.

uncheckedThumbColor

Added in 1.0.0-alpha21
val uncheckedThumbColorColor

The thumb color of Switch when enabled and unchecked.

uncheckedThumbIconColor

Added in 1.0.0-alpha21
val uncheckedThumbIconColorColor

The thumb icon color of Switch when enabled and unchecked.

uncheckedTrackBorderColor

Added in 1.0.0-alpha21
val uncheckedTrackBorderColorColor

The track border color of Switch when enabled and unchecked.

uncheckedTrackColor

Added in 1.0.0-alpha21
val uncheckedTrackColorColor

The track color of Switch when enabled and unchecked.