SplitSwitchButtonColors

class SplitSwitchButtonColors


Represents the different colors used in SplitSwitchButton in different states.

Summary

Public constructors

SplitSwitchButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedSplitContainerColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedSplitContainerColor: Color,
    uncheckedThumbColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedSplitContainerColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedSplitContainerColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedTrackBorderColor: Color
)

Public functions

SplitSwitchButtonColors
copy(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedSplitContainerColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedSplitContainerColor: Color,
    uncheckedThumbColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedSplitContainerColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedSplitContainerColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedTrackBorderColor: Color
)

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

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

Public properties

Color

Container or background color when the SplitSwitchButton is checked

Color

Color of the content like label when the SplitSwitchButton is checked

Color

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

Color

Split container color when the split toggle button is checked

Color

Color of the thumb when the SplitSwitchButton is checked

Color

Color of the thumb icon when the SplitSwitchButton is checked

Color

Color of the track border when the SplitSwitchButton is checked

Color

Color of the track when the SplitSwitchButton is checked

Color

Container color when the split toggle button is disabled and checked

Color

Color of the content like label when the split toggle button is disabled and checked

Color

Color of the secondary content like secondary label when the split toggle button is disabled and checked

Color

Split container color when the split toggle button is disabled and checked

Color

Color of the thumb when the SplitSwitchButton is disabled and checked

Color

Color of the thumb icon when the SplitSwitchButton is disabled and checked

Color

Color of the track border when the SplitSwitchButton is disabled and checked

Color

Color of the track when the SplitSwitchButton is disabled and checked

Color

Container color when the split toggle button is unchecked and disabled

Color

Color of the content like label when the split toggle button is unchecked and disabled

Color

Color of the secondary content like secondary label when the split toggle button is unchecked and disabled

Color

Split container color when the split toggle button is unchecked and disabled

Color

Color of the thumb when the SplitSwitchButton is disabled and unchecked

Color

Color of the track border when the SplitSwitchButton is disabled and unchecked

Color

Container or background color when the SplitSwitchButton is unchecked

Color

Color of the content like label when the SplitSwitchButton is unchecked

Color

Color of the secondary content like secondary label when the split toggle button is unchecked

Color

Split container color when the split toggle button is unchecked

Color

Color of the thumb when the SplitSwitchButton is unchecked

Color

Color of the track border when the SplitSwitchButton is unchecked

Color

Color of the track when the SplitSwitchButton is unchecked

Public constructors

SplitSwitchButtonColors

SplitSwitchButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedSplitContainerColor: Color,
    checkedThumbColor: Color,
    checkedThumbIconColor: Color,
    checkedTrackColor: Color,
    checkedTrackBorderColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedSplitContainerColor: Color,
    uncheckedThumbColor: Color,
    uncheckedTrackColor: Color,
    uncheckedTrackBorderColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedSplitContainerColor: Color,
    disabledCheckedThumbColor: Color,
    disabledCheckedThumbIconColor: Color,
    disabledCheckedTrackColor: Color,
    disabledCheckedTrackBorderColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedSplitContainerColor: Color,
    disabledUncheckedThumbColor: Color,
    disabledUncheckedTrackBorderColor: Color
)
Parameters
checkedContainerColor: Color

Container or background color when the SplitSwitchButton is checked

checkedContentColor: Color

Color of the content like label when the SplitSwitchButton is checked

checkedSecondaryContentColor: Color

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

checkedSplitContainerColor: Color

Split container color when the split toggle button is checked

checkedThumbColor: Color

Color of the thumb when the SplitSwitchButton is checked

checkedThumbIconColor: Color

Color of the thumb icon when the SplitSwitchButton is checked

checkedTrackColor: Color

Color of the track when the SplitSwitchButton is checked

checkedTrackBorderColor: Color

Color of the track border when the SplitSwitchButton is checked

uncheckedContainerColor: Color

Container or background color when the SplitSwitchButton is unchecked

uncheckedContentColor: Color

Color of the content like label when the SplitSwitchButton is unchecked

uncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the split toggle button is unchecked

uncheckedSplitContainerColor: Color

Split container color when the split toggle button is unchecked

uncheckedThumbColor: Color

Color of the thumb when the SplitSwitchButton is unchecked

uncheckedTrackColor: Color

Color of the track when the SplitSwitchButton is unchecked

uncheckedTrackBorderColor: Color

Color of the track border when the SplitSwitchButton is unchecked

disabledCheckedContainerColor: Color

Container color when the split toggle button is disabled and checked

disabledCheckedContentColor: Color

Color of the content like label when the split toggle button is disabled and checked

disabledCheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the split toggle button is disabled and checked

disabledCheckedSplitContainerColor: Color

Split container color when the split toggle button is disabled and checked

disabledCheckedThumbColor: Color

Color of the thumb when the SplitSwitchButton is disabled and checked

disabledCheckedThumbIconColor: Color

Color of the thumb icon when the SplitSwitchButton is disabled and checked

disabledCheckedTrackColor: Color

Color of the track when the SplitSwitchButton is disabled and checked

disabledCheckedTrackBorderColor: Color

Color of the track border when the SplitSwitchButton is disabled and checked

disabledUncheckedContainerColor: Color

Container color when the split toggle button is unchecked and disabled

disabledUncheckedContentColor: Color

Color of the content like label when the split toggle button is unchecked and disabled

disabledUncheckedSecondaryContentColor: Color

Color of the secondary content like secondary label when the split toggle button is unchecked and disabled

disabledUncheckedSplitContainerColor: Color

Split container color when the split toggle button is unchecked and disabled

disabledUncheckedThumbColor: Color

Color of the thumb when the SplitSwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor: Color

Color of the track border when the SplitSwitchButton is disabled and unchecked

Public functions

copy

fun copy(
    checkedContainerColor: Color = this.checkedContainerColor,
    checkedContentColor: Color = this.checkedContentColor,
    checkedSecondaryContentColor: Color = this.checkedSecondaryContentColor,
    checkedSplitContainerColor: Color = this.checkedSplitContainerColor,
    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,
    uncheckedSplitContainerColor: Color = this.uncheckedSplitContainerColor,
    uncheckedThumbColor: Color = this.uncheckedThumbColor,
    uncheckedTrackColor: Color = this.uncheckedTrackColor,
    uncheckedTrackBorderColor: Color = this.uncheckedTrackBorderColor,
    disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor,
    disabledCheckedContentColor: Color = this.disabledCheckedContentColor,
    disabledCheckedSecondaryContentColor: Color = this.disabledCheckedSecondaryContentColor,
    disabledCheckedSplitContainerColor: Color = this.disabledCheckedSplitContainerColor,
    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,
    disabledUncheckedSplitContainerColor: Color = this.disabledUncheckedSplitContainerColor,
    disabledUncheckedThumbColor: Color = this.disabledUncheckedThumbColor,
    disabledUncheckedTrackBorderColor: Color = this.disabledUncheckedTrackBorderColor
): SplitSwitchButtonColors

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

Parameters
checkedContainerColor: Color = this.checkedContainerColor

Container or background color when the SplitSwitchButton is checked

checkedContentColor: Color = this.checkedContentColor

Color of the content like label when the SplitSwitchButton is checked

checkedSecondaryContentColor: Color = this.checkedSecondaryContentColor

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

checkedSplitContainerColor: Color = this.checkedSplitContainerColor

Split container color when the split toggle button is checked

checkedThumbColor: Color = this.checkedThumbColor

Color of the thumb when the SplitSwitchButton is checked

checkedThumbIconColor: Color = this.checkedThumbIconColor

Color of the thumb icon when the SplitSwitchButton is checked

checkedTrackColor: Color = this.checkedTrackColor

Color of the track when the SplitSwitchButton is checked

checkedTrackBorderColor: Color = this.checkedTrackBorderColor

Color of the track border when the SplitSwitchButton is checked

uncheckedContainerColor: Color = this.uncheckedContainerColor

Container or background color when the SplitSwitchButton is unchecked

uncheckedContentColor: Color = this.uncheckedContentColor

Color of the content like label when the SplitSwitchButton is unchecked

uncheckedSecondaryContentColor: Color = this.uncheckedSecondaryContentColor

Color of the secondary content like secondary label when the split toggle button is unchecked

uncheckedSplitContainerColor: Color = this.uncheckedSplitContainerColor

Split container color when the split toggle button is unchecked

uncheckedThumbColor: Color = this.uncheckedThumbColor

Color of the thumb when the SplitSwitchButton is unchecked

uncheckedTrackColor: Color = this.uncheckedTrackColor

Color of the track when the SplitSwitchButton is unchecked

uncheckedTrackBorderColor: Color = this.uncheckedTrackBorderColor

Color of the track border when the SplitSwitchButton is unchecked

disabledCheckedContainerColor: Color = this.disabledCheckedContainerColor

Container color when the split toggle button is disabled and checked

disabledCheckedContentColor: Color = this.disabledCheckedContentColor

Color of the content like label when the split toggle button is disabled and checked

disabledCheckedSecondaryContentColor: Color = this.disabledCheckedSecondaryContentColor

Color of the secondary content like secondary label when the split toggle button is disabled and checked

disabledCheckedSplitContainerColor: Color = this.disabledCheckedSplitContainerColor

Split container color when the split toggle button is disabled and checked

disabledCheckedThumbColor: Color = this.disabledCheckedThumbColor

Color of the thumb when the SplitSwitchButton is disabled and checked

disabledCheckedThumbIconColor: Color = this.disabledCheckedThumbIconColor

Color of the thumb icon when the SplitSwitchButton is disabled and checked

disabledCheckedTrackColor: Color = this.disabledCheckedTrackColor

Color of the track when the SplitSwitchButton is disabled and checked

disabledCheckedTrackBorderColor: Color = this.disabledCheckedTrackBorderColor

Color of the track border when the SplitSwitchButton is disabled and checked

disabledUncheckedContainerColor: Color = this.disabledUncheckedContainerColor

Container color when the split toggle button is unchecked and disabled

disabledUncheckedContentColor: Color = this.disabledUncheckedContentColor

Color of the content like label when the split toggle button is unchecked and disabled

disabledUncheckedSecondaryContentColor: Color = this.disabledUncheckedSecondaryContentColor

Color of the secondary content like secondary label when the split toggle button is unchecked and disabled

disabledUncheckedSplitContainerColor: Color = this.disabledUncheckedSplitContainerColor

Split container color when the split toggle button is unchecked and disabled

disabledUncheckedThumbColor: Color = this.disabledUncheckedThumbColor

Color of the thumb when the SplitSwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor: Color = this.disabledUncheckedTrackBorderColor

Color of the track border when the SplitSwitchButton 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-alpha29
val checkedContainerColorColor

Container or background color when the SplitSwitchButton is checked

checkedContentColor

Added in 1.0.0-alpha29
val checkedContentColorColor

Color of the content like label when the SplitSwitchButton is checked

checkedSecondaryContentColor

Added in 1.0.0-alpha29
val checkedSecondaryContentColorColor

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

checkedSplitContainerColor

Added in 1.0.0-alpha29
val checkedSplitContainerColorColor

Split container color when the split toggle button is checked

checkedThumbColor

Added in 1.0.0-alpha29
val checkedThumbColorColor

Color of the thumb when the SplitSwitchButton is checked

checkedThumbIconColor

Added in 1.0.0-alpha29
val checkedThumbIconColorColor

Color of the thumb icon when the SplitSwitchButton is checked

checkedTrackBorderColor

Added in 1.0.0-alpha29
val checkedTrackBorderColorColor

Color of the track border when the SplitSwitchButton is checked

checkedTrackColor

Added in 1.0.0-alpha29
val checkedTrackColorColor

Color of the track when the SplitSwitchButton is checked

disabledCheckedContainerColor

Added in 1.0.0-alpha29
val disabledCheckedContainerColorColor

Container color when the split toggle button is disabled and checked

disabledCheckedContentColor

Added in 1.0.0-alpha29
val disabledCheckedContentColorColor

Color of the content like label when the split toggle button is disabled and checked

disabledCheckedSecondaryContentColor

Added in 1.0.0-alpha29
val disabledCheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the split toggle button is disabled and checked

disabledCheckedSplitContainerColor

Added in 1.0.0-alpha29
val disabledCheckedSplitContainerColorColor

Split container color when the split toggle button is disabled and checked

disabledCheckedThumbColor

Added in 1.0.0-alpha29
val disabledCheckedThumbColorColor

Color of the thumb when the SplitSwitchButton is disabled and checked

disabledCheckedThumbIconColor

Added in 1.0.0-alpha29
val disabledCheckedThumbIconColorColor

Color of the thumb icon when the SplitSwitchButton is disabled and checked

disabledCheckedTrackBorderColor

Added in 1.0.0-alpha29
val disabledCheckedTrackBorderColorColor

Color of the track border when the SplitSwitchButton is disabled and checked

disabledCheckedTrackColor

Added in 1.0.0-alpha29
val disabledCheckedTrackColorColor

Color of the track when the SplitSwitchButton is disabled and checked

disabledUncheckedContainerColor

Added in 1.0.0-alpha29
val disabledUncheckedContainerColorColor

Container color when the split toggle button is unchecked and disabled

disabledUncheckedContentColor

Added in 1.0.0-alpha29
val disabledUncheckedContentColorColor

Color of the content like label when the split toggle button is unchecked and disabled

disabledUncheckedSecondaryContentColor

Added in 1.0.0-alpha29
val disabledUncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the split toggle button is unchecked and disabled

disabledUncheckedSplitContainerColor

Added in 1.0.0-alpha29
val disabledUncheckedSplitContainerColorColor

Split container color when the split toggle button is unchecked and disabled

disabledUncheckedThumbColor

Added in 1.0.0-alpha29
val disabledUncheckedThumbColorColor

Color of the thumb when the SplitSwitchButton is disabled and unchecked

disabledUncheckedTrackBorderColor

Added in 1.0.0-alpha29
val disabledUncheckedTrackBorderColorColor

Color of the track border when the SplitSwitchButton is disabled and unchecked

uncheckedContainerColor

Added in 1.0.0-alpha29
val uncheckedContainerColorColor

Container or background color when the SplitSwitchButton is unchecked

uncheckedContentColor

Added in 1.0.0-alpha29
val uncheckedContentColorColor

Color of the content like label when the SplitSwitchButton is unchecked

uncheckedSecondaryContentColor

Added in 1.0.0-alpha29
val uncheckedSecondaryContentColorColor

Color of the secondary content like secondary label when the split toggle button is unchecked

uncheckedSplitContainerColor

Added in 1.0.0-alpha29
val uncheckedSplitContainerColorColor

Split container color when the split toggle button is unchecked

uncheckedThumbColor

Added in 1.0.0-alpha29
val uncheckedThumbColorColor

Color of the thumb when the SplitSwitchButton is unchecked

uncheckedTrackBorderColor

Added in 1.0.0-alpha29
val uncheckedTrackBorderColorColor

Color of the track border when the SplitSwitchButton is unchecked

uncheckedTrackColor

Added in 1.0.0-alpha29
val uncheckedTrackColorColor

Color of the track when the SplitSwitchButton is unchecked