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

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

Added in 1.0.0-alpha30
val checkedContainerColorColor

Container or background color when the SwitchButton is checked

checkedContentColor

Added in 1.0.0-alpha30
val checkedContentColorColor

Color of the content like label when the SwitchButton is checked

checkedIconColor

Added in 1.0.0-alpha30
val checkedIconColorColor

Color of the icon when the SwitchButton is checked

checkedSecondaryContentColor

Added in 1.0.0-alpha30
val checkedSecondaryContentColorColor

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

checkedThumbColor

Added in 1.0.0-alpha30
val checkedThumbColorColor

Color of the thumb when the SwitchButton is checked

checkedThumbIconColor

Added in 1.0.0-alpha30
val checkedThumbIconColorColor

Color of the thumb icon when the SwitchButton is checked

checkedTrackBorderColor

Added in 1.0.0-alpha30
val checkedTrackBorderColorColor

Color of the track boarder when the SwitchButton is checked

checkedTrackColor

Added in 1.0.0-alpha30
val checkedTrackColorColor

Color of the track when the SwitchButton is checked

disabledCheckedContainerColor

Added in 1.0.0-alpha30
val disabledCheckedContainerColorColor

Container or background color when the SwitchButton is disabled and checked

disabledCheckedContentColor

Added in 1.0.0-alpha30
val disabledCheckedContentColorColor

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

disabledCheckedIconColor

Added in 1.0.0-alpha30
val disabledCheckedIconColorColor

Icon color when the SwitchButton is disabled and checked

disabledCheckedSecondaryContentColor

Added in 1.0.0-alpha30
val disabledCheckedSecondaryContentColorColor

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

disabledCheckedThumbColor

Added in 1.0.0-alpha30
val disabledCheckedThumbColorColor

Thumb color when the SwitchButton is disabled and checked

disabledCheckedThumbIconColor

Added in 1.0.0-alpha30
val disabledCheckedThumbIconColorColor

Thumb icon color when the SwitchButton is disabled and checked

disabledCheckedTrackBorderColor

Added in 1.0.0-alpha30
val disabledCheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and checked

disabledCheckedTrackColor

Added in 1.0.0-alpha30
val disabledCheckedTrackColorColor

Track color when the SwitchButton is disabled and checked

disabledUncheckedContainerColor

Added in 1.0.0-alpha30
val disabledUncheckedContainerColorColor

Container or background color when the SwitchButton is disabled and unchecked

disabledUncheckedContentColor

Added in 1.0.0-alpha30
val disabledUncheckedContentColorColor

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

disabledUncheckedIconColor

Added in 1.0.0-alpha30
val disabledUncheckedIconColorColor

Icon color when the SwitchButton is disabled and unchecked

disabledUncheckedSecondaryContentColor

Added in 1.0.0-alpha30
val disabledUncheckedSecondaryContentColorColor

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

disabledUncheckedThumbColor

Added in 1.0.0-alpha30
val disabledUncheckedThumbColorColor

Thumb color when the SwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor

Added in 1.0.0-alpha30
val disabledUncheckedTrackBorderColorColor

Track border color when the SwitchButton is disabled and unchecked

uncheckedContainerColor

Added in 1.0.0-alpha30
val uncheckedContainerColorColor

Container or background color when the SwitchButton is unchecked

uncheckedContentColor

Added in 1.0.0-alpha30
val uncheckedContentColorColor

Color of the content like label when the SwitchButton is unchecked

uncheckedIconColor

Added in 1.0.0-alpha30
val uncheckedIconColorColor

Color of the icon when the SwitchButton is unchecked

uncheckedSecondaryContentColor

Added in 1.0.0-alpha30
val uncheckedSecondaryContentColorColor

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

uncheckedThumbColor

Added in 1.0.0-alpha30
val uncheckedThumbColorColor

Color of the thumb when the SwitchButton is unchecked

uncheckedTrackBorderColor

Added in 1.0.0-alpha30
val uncheckedTrackBorderColorColor

Color of the track border when the SwitchButton is unchecked

uncheckedTrackColor

Added in 1.0.0-alpha30
val uncheckedTrackColorColor

Color of the track when the SwitchButton is unchecked