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

SwitchButtonColors
copy(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: 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
)

Returns a copy of this SwitchButtonColors optionally overriding some of the values.

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

Added in 1.5.0
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

copy

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

Returns a copy of this SwitchButtonColors optionally overriding some of the values.

Parameters
checkedContainerColor: Color = this.checkedContainerColor

Container or background color when the SwitchButton is checked

checkedContentColor: Color = this.checkedContentColor

Color of the content like label when the SwitchButton is checked

checkedSecondaryContentColor: Color = this.checkedSecondaryContentColor

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

checkedIconColor: Color = this.checkedIconColor

Color of the icon when the SwitchButton is checked

checkedThumbColor: Color = this.checkedThumbColor

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor: Color = this.checkedThumbIconColor

Color of the thumb icon when the SwitchButton is checked

checkedTrackColor: Color = this.checkedTrackColor

Color of the track when the SwitchButton is checked

checkedTrackBorderColor: Color = this.checkedTrackBorderColor

Color of the track boarder when the SwitchButton is checked

uncheckedContainerColor: Color = this.uncheckedContainerColor

Container or background color when the SwitchButton is unchecked

uncheckedContentColor: Color = this.uncheckedContentColor

Color of the content like label when the SwitchButton is unchecked

uncheckedSecondaryContentColor: Color = this.uncheckedSecondaryContentColor

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

uncheckedIconColor: Color = this.uncheckedIconColor

Color of the icon when the SwitchButton is unchecked

uncheckedThumbColor: Color = this.uncheckedThumbColor

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackColor: Color = this.uncheckedTrackColor

Color of the track when the SwitchButton is unchecked

uncheckedTrackBorderColor: Color = this.uncheckedTrackBorderColor

Color of the track border when the SwitchButton is unchecked

disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor: Color = this.disabledCheckedContentColor

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

disabledCheckedSecondaryContentColor: Color = this.disabledCheckedSecondaryContentColor

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

disabledCheckedIconColor: Color = this.disabledCheckedIconColor

Icon color when the SwitchButton is disabled and checked

disabledCheckedThumbColor: Color = this.disabledCheckedThumbColor

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor: Color = this.disabledCheckedThumbIconColor

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackColor: Color = this.disabledCheckedTrackColor

Track color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor: Color = this.disabledCheckedTrackBorderColor

Track border color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor

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

disabledUncheckedSecondaryContentColor: Color = this.disabledUncheckedSecondaryContentColor

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

disabledUncheckedIconColor: Color = this.disabledUncheckedIconColor

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedThumbColor: Color = this.disabledUncheckedThumbColor

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor: Color = this.disabledUncheckedTrackBorderColor

Track border color when the SwitchButton is disabled and unchecked

equals

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

hashCode

open fun hashCode(): Int

Public properties

checkedContainerColor

val checkedContainerColor: Color

Container or background color when the SwitchButton is checked

checkedContentColor

val checkedContentColor: Color

Color of the content like label when the SwitchButton is checked

checkedIconColor

val checkedIconColor: Color

Color of the icon when the SwitchButton is checked

checkedSecondaryContentColor

val checkedSecondaryContentColor: Color

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

checkedThumbColor

val checkedThumbColor: Color

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor

val checkedThumbIconColor: Color

Color of the thumb icon when the SwitchButton is checked

checkedTrackBorderColor

val checkedTrackBorderColor: Color

Color of the track boarder when the SwitchButton is checked

checkedTrackColor

val checkedTrackColor: Color

Color of the track when the SwitchButton is checked

disabledCheckedContainerColor

val disabledCheckedContainerColor: Color

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor

val disabledCheckedContentColor: Color

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

disabledCheckedIconColor

val disabledCheckedIconColor: Color

Icon color when the SwitchButton is disabled and checked

disabledCheckedSecondaryContentColor

val disabledCheckedSecondaryContentColor: Color

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

disabledCheckedThumbColor

val disabledCheckedThumbColor: Color

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor

val disabledCheckedThumbIconColor: Color

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor

val disabledCheckedTrackBorderColor: Color

Track border color when the SwitchButton is disabled and checked

disabledCheckedTrackColor

val disabledCheckedTrackColor: Color

Track color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor

val disabledUncheckedContainerColor: Color

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor

val disabledUncheckedContentColor: Color

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

disabledUncheckedIconColor

val disabledUncheckedIconColor: Color

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedSecondaryContentColor

val disabledUncheckedSecondaryContentColor: Color

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

disabledUncheckedThumbColor

val disabledUncheckedThumbColor: Color

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor

val disabledUncheckedTrackBorderColor: Color

Track border color when the SwitchButton is disabled and unchecked

uncheckedContainerColor

val uncheckedContainerColor: Color

Container or background color when the SwitchButton is unchecked

uncheckedContentColor

val uncheckedContentColor: Color

Color of the content like label when the SwitchButton is unchecked

uncheckedIconColor

val uncheckedIconColor: Color

Color of the icon when the SwitchButton is unchecked

uncheckedSecondaryContentColor

val uncheckedSecondaryContentColor: Color

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

uncheckedThumbColor

val uncheckedThumbColor: Color

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackBorderColor

val uncheckedTrackBorderColor: Color

Color of the track border when the SwitchButton is unchecked

uncheckedTrackColor

val uncheckedTrackColor: Color

Color of the track when the SwitchButton is unchecked