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( |
Public functions |
|
|---|---|
SwitchButtonColors |
copy(Returns a copy of this SwitchButtonColors optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
Public properties |
|
|---|---|
Color |
Container or background color when the |
Color |
Color of the content like label when the |
Color |
Color of the icon when the |
Color |
Color of the secondary content like secondary label when the |
Color |
Color of the thumb when the |
Color |
Color of the thumb icon when the |
Color |
Color of the track boarder when the |
Color |
Color of the track when the |
Color |
Container or background color when the |
Color |
Color of content like label when the |
Color |
Icon color when the |
Color |
Color of the secondary content like secondary label when the |
Color |
Thumb color when the |
Color |
Thumb icon color when the |
Color |
Track border color when the |
Color |
Track color when the |
Color |
Container or background color when the |
Color |
Color of the content like label when the |
Color |
Icon color when the |
Color |
Color of the secondary content like secondary label when the |
Color |
Thumb color when the |
Color |
Track border color when the |
Color |
Container or background color when the |
Color |
Color of the content like label when the |
Color |
Color of the icon when the |
Color |
Color of the secondary content like secondary label when the |
Color |
Color of the thumb when the |
Color |
Color of the track border when the |
Color |
Color of the track when the |
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 |
checkedContentColor: Color |
Color of the content like label when the |
checkedSecondaryContentColor: Color |
Color of the secondary content like secondary label when the |
checkedIconColor: Color |
Color of the icon when the |
checkedThumbColor: Color |
Color of the thumb when the |
checkedThumbIconColor: Color |
Color of the thumb icon when the |
checkedTrackBorderColor: Color |
Color of the track boarder when the |
checkedTrackColor: Color |
Color of the track when the |
uncheckedContainerColor: Color |
Container or background color when the |
uncheckedContentColor: Color |
Color of the content like label when the |
uncheckedSecondaryContentColor: Color |
Color of the secondary content like secondary label when the |
uncheckedIconColor: Color |
Color of the icon when the |
uncheckedThumbColor: Color |
Color of the thumb when the |
uncheckedTrackColor: Color |
Color of the track when the |
uncheckedTrackBorderColor: Color |
Color of the track border when the |
disabledCheckedContainerColor: Color |
Container or background color when the |
disabledCheckedContentColor: Color |
Color of content like label when the |
disabledCheckedSecondaryContentColor: Color |
Color of the secondary content like secondary label when the |
disabledCheckedIconColor: Color |
Icon color when the |
disabledCheckedThumbColor: Color |
Thumb color when the |
disabledCheckedThumbIconColor: Color |
Thumb icon color when the |
disabledCheckedTrackColor: Color |
Track color when the |
disabledCheckedTrackBorderColor: Color |
Track border color when the |
disabledUncheckedContainerColor: Color |
Container or background color when the |
disabledUncheckedContentColor: Color |
Color of the content like label when the |
disabledUncheckedSecondaryContentColor: Color |
Color of the secondary content like secondary label when the |
disabledUncheckedIconColor: Color |
Icon color when the |
disabledUncheckedThumbColor: Color |
Thumb color when the |
disabledUncheckedTrackBorderColor: Color |
Track border color when the |
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 |
checkedContentColor: Color = this.checkedContentColor |
Color of the content like label when the |
checkedSecondaryContentColor: Color = this.checkedSecondaryContentColor |
Color of the secondary content like secondary label when the |
checkedIconColor: Color = this.checkedIconColor |
Color of the icon when the |
checkedThumbColor: Color = this.checkedThumbColor |
Color of the thumb when the |
checkedThumbIconColor: Color = this.checkedThumbIconColor |
Color of the thumb icon when the |
checkedTrackColor: Color = this.checkedTrackColor |
Color of the track when the |
checkedTrackBorderColor: Color = this.checkedTrackBorderColor |
Color of the track boarder when the |
uncheckedContainerColor: Color = this.uncheckedContainerColor |
Container or background color when the |
uncheckedContentColor: Color = this.uncheckedContentColor |
Color of the content like label when the |
uncheckedSecondaryContentColor: Color = this.uncheckedSecondaryContentColor |
Color of the secondary content like secondary label when the |
uncheckedIconColor: Color = this.uncheckedIconColor |
Color of the icon when the |
uncheckedThumbColor: Color = this.uncheckedThumbColor |
Color of the thumb when the |
uncheckedTrackColor: Color = this.uncheckedTrackColor |
Color of the track when the |
uncheckedTrackBorderColor: Color = this.uncheckedTrackBorderColor |
Color of the track border when the |
disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor |
Container or background color when the |
disabledCheckedContentColor: Color = this.disabledCheckedContentColor |
Color of content like label when the |
disabledCheckedSecondaryContentColor: Color = this.disabledCheckedSecondaryContentColor |
Color of the secondary content like secondary label when the |
disabledCheckedIconColor: Color = this.disabledCheckedIconColor |
Icon color when the |
disabledCheckedThumbColor: Color = this.disabledCheckedThumbColor |
Thumb color when the |
disabledCheckedThumbIconColor: Color = this.disabledCheckedThumbIconColor |
Thumb icon color when the |
disabledCheckedTrackColor: Color = this.disabledCheckedTrackColor |
Track color when the |
disabledCheckedTrackBorderColor: Color = this.disabledCheckedTrackBorderColor |
Track border color when the |
disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor |
Container or background color when the |
disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor |
Color of the content like label when the |
disabledUncheckedSecondaryContentColor: Color = this.disabledUncheckedSecondaryContentColor |
Color of the secondary content like secondary label when the |
disabledUncheckedIconColor: Color = this.disabledUncheckedIconColor |
Icon color when the |
disabledUncheckedThumbColor: Color = this.disabledUncheckedThumbColor |
Thumb color when the |
disabledUncheckedTrackBorderColor: Color = this.disabledUncheckedTrackBorderColor |
Track border color when the |
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
checkedSecondaryContentColor
val checkedSecondaryContentColor: Color
Color of the secondary content like secondary label 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
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