SplitSwitchButtonColors

Class

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

Represents the different colors used in SplitSwitchButton in different states.

Parameters

checkedContainerColorContainer or background color when the SplitSwitchButton is checked
checkedContentColorColor of the content like label when the SplitSwitchButton is checked
checkedSecondaryContentColorColor of the secondary content like secondary label when the SplitSwitchButton is checked
checkedSplitContainerColorSplit container color when the split toggle button is checked
checkedThumbColorColor of the thumb when the SplitSwitchButton is checked
checkedThumbIconColorColor of the thumb icon when the SplitSwitchButton is checked
checkedTrackColorColor of the track when the SplitSwitchButton is checked
checkedTrackBorderColorColor of the track border when the SplitSwitchButton is checked
uncheckedContainerColorContainer or background color when the SplitSwitchButton is unchecked
uncheckedContentColorColor of the content like label when the SplitSwitchButton is unchecked
uncheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is unchecked
uncheckedSplitContainerColorSplit container color when the split toggle button is unchecked
uncheckedThumbColorColor of the thumb when the SplitSwitchButton is unchecked
uncheckedTrackColorColor of the track when the SplitSwitchButton is unchecked
uncheckedTrackBorderColorColor of the track border when the SplitSwitchButton is unchecked
disabledCheckedContainerColorContainer color when the split toggle button is disabled and checked
disabledCheckedContentColorColor of the content like label when the split toggle button is disabled and checked
disabledCheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is disabled and checked
disabledCheckedSplitContainerColorSplit container color when the split toggle button is disabled and checked
disabledCheckedThumbColorColor of the thumb when the SplitSwitchButton is disabled and checked
disabledCheckedThumbIconColorColor of the thumb icon when the SplitSwitchButton is disabled and checked
disabledCheckedTrackColorColor of the track when the SplitSwitchButton is disabled and checked
disabledCheckedTrackBorderColorColor of the track border when the SplitSwitchButton is disabled and checked
disabledUncheckedContainerColorContainer color when the split toggle button is unchecked and disabled
disabledUncheckedContentColorColor of the content like label when the split toggle button is unchecked and disabled
disabledUncheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is unchecked and disabled
disabledUncheckedSplitContainerColorSplit container color when the split toggle button is unchecked and disabled
disabledUncheckedThumbColorColor of the thumb when the SplitSwitchButton is disabled and unchecked
disabledUncheckedTrackBorderColorColor of the track border when the SplitSwitchButton is disabled and unchecked

Functions

public 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

checkedContainerColorContainer or background color when the SplitSwitchButton is checked
checkedContentColorColor of the content like label when the SplitSwitchButton is checked
checkedSecondaryContentColorColor of the secondary content like secondary label when the SplitSwitchButton is checked
checkedSplitContainerColorSplit container color when the split toggle button is checked
checkedThumbColorColor of the thumb when the SplitSwitchButton is checked
checkedThumbIconColorColor of the thumb icon when the SplitSwitchButton is checked
checkedTrackColorColor of the track when the SplitSwitchButton is checked
checkedTrackBorderColorColor of the track border when the SplitSwitchButton is checked
uncheckedContainerColorContainer or background color when the SplitSwitchButton is unchecked
uncheckedContentColorColor of the content like label when the SplitSwitchButton is unchecked
uncheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is unchecked
uncheckedSplitContainerColorSplit container color when the split toggle button is unchecked
uncheckedThumbColorColor of the thumb when the SplitSwitchButton is unchecked
uncheckedTrackColorColor of the track when the SplitSwitchButton is unchecked
uncheckedTrackBorderColorColor of the track border when the SplitSwitchButton is unchecked
disabledCheckedContainerColorContainer color when the split toggle button is disabled and checked
disabledCheckedContentColorColor of the content like label when the split toggle button is disabled and checked
disabledCheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is disabled and checked
disabledCheckedSplitContainerColorSplit container color when the split toggle button is disabled and checked
disabledCheckedThumbColorColor of the thumb when the SplitSwitchButton is disabled and checked
disabledCheckedThumbIconColorColor of the thumb icon when the SplitSwitchButton is disabled and checked
disabledCheckedTrackColorColor of the track when the SplitSwitchButton is disabled and checked
disabledCheckedTrackBorderColorColor of the track border when the SplitSwitchButton is disabled and checked
disabledUncheckedContainerColorContainer color when the split toggle button is unchecked and disabled
disabledUncheckedContentColorColor of the content like label when the split toggle button is unchecked and disabled
disabledUncheckedSecondaryContentColorColor of the secondary content like secondary label when the split toggle button is unchecked and disabled
disabledUncheckedSplitContainerColorSplit container color when the split toggle button is unchecked and disabled
disabledUncheckedThumbColorColor of the thumb when the SplitSwitchButton is disabled and unchecked
disabledUncheckedTrackBorderColorColor of the track border when the SplitSwitchButton is disabled and unchecked