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-beta06
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

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 checkedContainerColorColor

Container or background color when the SwitchButton is checked

checkedContentColor

val checkedContentColorColor

Color of the content like label when the SwitchButton is checked

checkedIconColor

val checkedIconColorColor

Color of the icon when the SwitchButton is checked

checkedSecondaryContentColor

val checkedSecondaryContentColorColor

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

checkedThumbColor

val checkedThumbColorColor

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor

val checkedThumbIconColorColor

Color of the thumb icon when the SwitchButton is checked

checkedTrackBorderColor

val checkedTrackBorderColorColor

Color of the track boarder when the SwitchButton is checked

checkedTrackColor

val checkedTrackColorColor

Color of the track when the SwitchButton is checked

disabledCheckedContainerColor

val disabledCheckedContainerColorColor

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor

val disabledCheckedContentColorColor

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

disabledCheckedIconColor

val disabledCheckedIconColorColor

Icon color when the SwitchButton is disabled and checked

disabledCheckedSecondaryContentColor

val disabledCheckedSecondaryContentColorColor

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

disabledCheckedThumbColor

val disabledCheckedThumbColorColor

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor

val disabledCheckedThumbIconColorColor

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor

val disabledCheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and checked

disabledCheckedTrackColor

val disabledCheckedTrackColorColor

Track color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor

val disabledUncheckedContainerColorColor

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor

val disabledUncheckedContentColorColor

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

disabledUncheckedIconColor

val disabledUncheckedIconColorColor

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedSecondaryContentColor

val disabledUncheckedSecondaryContentColorColor

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

disabledUncheckedThumbColor

val disabledUncheckedThumbColorColor

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor

val disabledUncheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and unchecked

uncheckedContainerColor

val uncheckedContainerColorColor

Container or background color when the SwitchButton is unchecked

uncheckedContentColor

val uncheckedContentColorColor

Color of the content like label when the SwitchButton is unchecked

uncheckedIconColor

val uncheckedIconColorColor

Color of the icon when the SwitchButton is unchecked

uncheckedSecondaryContentColor

val uncheckedSecondaryContentColorColor

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

uncheckedThumbColor

val uncheckedThumbColorColor

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackBorderColor

val uncheckedTrackBorderColorColor

Color of the track border when the SwitchButton is unchecked

uncheckedTrackColor

val uncheckedTrackColorColor

Color of the track when the SwitchButton is unchecked