SwitchButtonColors

class SwitchButtonColors


Represents the different container and content colors used for SwitchButton, in various states, that are checked, unchecked, enabled and disabled.

Summary

Public constructors

SwitchButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackBorderColor: Color,
    checkedTrackColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedIconColor: Color,
    uncheckedThumbColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedIconColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedIconColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedTrackBorderColor: Color
)

Public functions

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

Public properties

Color

Container or background color when the SwitchButton is checked

Color

Color of the content like label when the SwitchButton is checked

Color

Color of the icon when the SwitchButton is checked

Color

Color of the secondary content like secondary label when the SwitchButton is checked

Color

Color of the thumb when the SwitchButton is checked

Color

Color of the thumb icon when the SwitchButton is checked

Color

Color of the track boarder when the SwitchButton is checked

Color

Color of the track when the SwitchButton is checked

Color

Container or background color when the SwitchButton is disabled and checked

Color

Color of content like label when the SwitchButton is disabled and checked

Color

Icon color when the SwitchButton is disabled and checked

Color

Color of the secondary content like secondary label when the SwitchButton is disabled and checked

Color

Thumb color when the SwitchButton is disabled and checked

Color

Thumb icon color when the SwitchButton is disabled and checked

Color

Track border color when the SwitchButton is disabled and checked

Color

Track color when the SwitchButton is disabled and checked

Color

Container or background color when the SwitchButton is disabled and unchecked

Color

Color of the content like label when the SwitchButton is disabled and unchecked

Color

Icon color when the SwitchButton is disabled and unchecked

Color

Color of the secondary content like secondary label when the SwitchButton is disabled and unchecked

Color

Thumb color when the SwitchButton is disabled and unchecked

Color

Track border color when the SwitchButton is disabled and unchecked

Color

Container or background color when the SwitchButton is unchecked

Color

Color of the content like label when the SwitchButton is unchecked

Color

Color of the icon when the SwitchButton is unchecked

Color

Color of the secondary content like secondary label when the SwitchButton is unchecked

Color

Color of the thumb when the SwitchButton is unchecked

Color

Color of the track border when the SwitchButton is unchecked

Color

Color of the track when the SwitchButton is unchecked

Public constructors

SwitchButtonColors

SwitchButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackBorderColor: Color,
    checkedTrackColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedIconColor: Color,
    uncheckedThumbColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedIconColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedIconColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedTrackBorderColor: Color
)
Parameters
checkedContainerColor: Color

Container or background color when the SwitchButton is checked

checkedContentColor: Color

Color of the content like label when the SwitchButton is checked

checkedSecondaryContentColor: Color

Color of the secondary content like secondary label when the SwitchButton is checked

checkedIconColor: Color

Color of the icon when the SwitchButton is checked

checkedThumbColor: Color

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor: Color

Color of the thumb icon when the SwitchButton is checked

checkedTrackBorderColor: Color

Color of the track boarder when the SwitchButton is checked

checkedTrackColor: Color

Color of the track when the SwitchButton is checked

uncheckedContainerColor: Color

Container or background color when the SwitchButton is unchecked

uncheckedContentColor: Color

Color of the content like label when the SwitchButton is unchecked

uncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the SwitchButton is unchecked

uncheckedIconColor: Color

Color of the icon when the SwitchButton is unchecked

uncheckedThumbColor: Color

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackColor: Color

Color of the track when the SwitchButton is unchecked

uncheckedTrackBorderColor: Color

Color of the track border when the SwitchButton is unchecked

disabledCheckedContainerColor: Color

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor: Color

Color of content like label when the SwitchButton is disabled and checked

disabledCheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the SwitchButton is disabled and checked

disabledCheckedIconColor: Color

Icon color when the SwitchButton is disabled and checked

disabledCheckedThumbColor: Color

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor: Color

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackColor: Color

Track color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor: Color

Track border color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor: Color

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor: Color

Color of the content like label when the SwitchButton is disabled and unchecked

disabledUncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the SwitchButton is disabled and unchecked

disabledUncheckedIconColor: Color

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedThumbColor: Color

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor: Color

Track border color when the SwitchButton is disabled and unchecked

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedContainerColor

Added in 1.0.0-alpha25
val checkedContainerColorColor

Container or background color when the SwitchButton is checked

checkedContentColor

Added in 1.0.0-alpha25
val checkedContentColorColor

Color of the content like label when the SwitchButton is checked

checkedIconColor

Added in 1.0.0-alpha25
val checkedIconColorColor

Color of the icon when the SwitchButton is checked

checkedSecondaryContentColor

Added in 1.0.0-alpha25
val checkedSecondaryContentColorColor

Color of the secondary content like secondary label when the SwitchButton is checked

checkedThumbColor

Added in 1.0.0-alpha25
val checkedThumbColorColor

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor

Added in 1.0.0-alpha25
val checkedThumbIconColorColor

Color of the thumb icon when the SwitchButton is checked

checkedTrackBorderColor

Added in 1.0.0-alpha25
val checkedTrackBorderColorColor

Color of the track boarder when the SwitchButton is checked

checkedTrackColor

Added in 1.0.0-alpha25
val checkedTrackColorColor

Color of the track when the SwitchButton is checked

disabledCheckedContainerColor

Added in 1.0.0-alpha25
val disabledCheckedContainerColorColor

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor

Added in 1.0.0-alpha25
val disabledCheckedContentColorColor

Color of content like label when the SwitchButton is disabled and checked

disabledCheckedIconColor

Added in 1.0.0-alpha25
val disabledCheckedIconColorColor

Icon color when the SwitchButton is disabled and checked

disabledCheckedSecondaryContentColor

Added in 1.0.0-alpha25
val disabledCheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the SwitchButton is disabled and checked

disabledCheckedThumbColor

Added in 1.0.0-alpha25
val disabledCheckedThumbColorColor

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor

Added in 1.0.0-alpha25
val disabledCheckedThumbIconColorColor

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor

Added in 1.0.0-alpha25
val disabledCheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and checked

disabledCheckedTrackColor

Added in 1.0.0-alpha25
val disabledCheckedTrackColorColor

Track color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor

Added in 1.0.0-alpha25
val disabledUncheckedContainerColorColor

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor

Added in 1.0.0-alpha25
val disabledUncheckedContentColorColor

Color of the content like label when the SwitchButton is disabled and unchecked

disabledUncheckedIconColor

Added in 1.0.0-alpha25
val disabledUncheckedIconColorColor

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedSecondaryContentColor

Added in 1.0.0-alpha25
val disabledUncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the SwitchButton is disabled and unchecked

disabledUncheckedThumbColor

Added in 1.0.0-alpha25
val disabledUncheckedThumbColorColor

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor

Added in 1.0.0-alpha25
val disabledUncheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and unchecked

uncheckedContainerColor

Added in 1.0.0-alpha25
val uncheckedContainerColorColor

Container or background color when the SwitchButton is unchecked

uncheckedContentColor

Added in 1.0.0-alpha25
val uncheckedContentColorColor

Color of the content like label when the SwitchButton is unchecked

uncheckedIconColor

Added in 1.0.0-alpha25
val uncheckedIconColorColor

Color of the icon when the SwitchButton is unchecked

uncheckedSecondaryContentColor

Added in 1.0.0-alpha25
val uncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the SwitchButton is unchecked

uncheckedThumbColor

Added in 1.0.0-alpha25
val uncheckedThumbColorColor

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackBorderColor

Added in 1.0.0-alpha25
val uncheckedTrackBorderColorColor

Color of the track border when the SwitchButton is unchecked

uncheckedTrackColor

Added in 1.0.0-alpha25
val uncheckedTrackColorColor

Color of the track when the SwitchButton is unchecked