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
checkedContainerColor | Container or background color when the SplitSwitchButton is checked |
checkedContentColor | Color of the content like label when the SplitSwitchButton is checked |
checkedSecondaryContentColor | Color of the secondary content like secondary label when the SplitSwitchButton is checked |
checkedSplitContainerColor | Split container color when the split toggle button is checked |
checkedThumbColor | Color of the thumb when the SplitSwitchButton is checked |
checkedThumbIconColor | Color of the thumb icon when the SplitSwitchButton is checked |
checkedTrackColor | Color of the track when the SplitSwitchButton is checked |
checkedTrackBorderColor | Color of the track border when the SplitSwitchButton is checked |
uncheckedContainerColor | Container or background color when the SplitSwitchButton is unchecked |
uncheckedContentColor | Color of the content like label when the SplitSwitchButton is unchecked |
uncheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is unchecked |
uncheckedSplitContainerColor | Split container color when the split toggle button is unchecked |
uncheckedThumbColor | Color of the thumb when the SplitSwitchButton is unchecked |
uncheckedTrackColor | Color of the track when the SplitSwitchButton is unchecked |
uncheckedTrackBorderColor | Color of the track border when the SplitSwitchButton is unchecked |
disabledCheckedContainerColor | Container color when the split toggle button is disabled and checked |
disabledCheckedContentColor | Color of the content like label when the split toggle button is disabled and checked |
disabledCheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is disabled and checked |
disabledCheckedSplitContainerColor | Split container color when the split toggle button is disabled and checked |
disabledCheckedThumbColor | Color of the thumb when the SplitSwitchButton is disabled and checked |
disabledCheckedThumbIconColor | Color of the thumb icon when the SplitSwitchButton is disabled and checked |
disabledCheckedTrackColor | Color of the track when the SplitSwitchButton is disabled and checked |
disabledCheckedTrackBorderColor | Color of the track border when the SplitSwitchButton is disabled and checked |
disabledUncheckedContainerColor | Container color when the split toggle button is unchecked and disabled |
disabledUncheckedContentColor | Color of the content like label when the split toggle button is unchecked and disabled |
disabledUncheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is unchecked and disabled |
disabledUncheckedSplitContainerColor | Split container color when the split toggle button is unchecked and disabled |
disabledUncheckedThumbColor | Color of the thumb when the SplitSwitchButton is disabled and unchecked |
disabledUncheckedTrackBorderColor | Color 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
checkedContainerColor | Container or background color when the SplitSwitchButton is checked |
checkedContentColor | Color of the content like label when the SplitSwitchButton is checked |
checkedSecondaryContentColor | Color of the secondary content like secondary label when the SplitSwitchButton is checked |
checkedSplitContainerColor | Split container color when the split toggle button is checked |
checkedThumbColor | Color of the thumb when the SplitSwitchButton is checked |
checkedThumbIconColor | Color of the thumb icon when the SplitSwitchButton is checked |
checkedTrackColor | Color of the track when the SplitSwitchButton is checked |
checkedTrackBorderColor | Color of the track border when the SplitSwitchButton is checked |
uncheckedContainerColor | Container or background color when the SplitSwitchButton is unchecked |
uncheckedContentColor | Color of the content like label when the SplitSwitchButton is unchecked |
uncheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is unchecked |
uncheckedSplitContainerColor | Split container color when the split toggle button is unchecked |
uncheckedThumbColor | Color of the thumb when the SplitSwitchButton is unchecked |
uncheckedTrackColor | Color of the track when the SplitSwitchButton is unchecked |
uncheckedTrackBorderColor | Color of the track border when the SplitSwitchButton is unchecked |
disabledCheckedContainerColor | Container color when the split toggle button is disabled and checked |
disabledCheckedContentColor | Color of the content like label when the split toggle button is disabled and checked |
disabledCheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is disabled and checked |
disabledCheckedSplitContainerColor | Split container color when the split toggle button is disabled and checked |
disabledCheckedThumbColor | Color of the thumb when the SplitSwitchButton is disabled and checked |
disabledCheckedThumbIconColor | Color of the thumb icon when the SplitSwitchButton is disabled and checked |
disabledCheckedTrackColor | Color of the track when the SplitSwitchButton is disabled and checked |
disabledCheckedTrackBorderColor | Color of the track border when the SplitSwitchButton is disabled and checked |
disabledUncheckedContainerColor | Container color when the split toggle button is unchecked and disabled |
disabledUncheckedContentColor | Color of the content like label when the split toggle button is unchecked and disabled |
disabledUncheckedSecondaryContentColor | Color of the secondary content like secondary label when the split toggle button is unchecked and disabled |
disabledUncheckedSplitContainerColor | Split container color when the split toggle button is unchecked and disabled |
disabledUncheckedThumbColor | Color of the thumb when the SplitSwitchButton is disabled and unchecked |
disabledUncheckedTrackBorderColor | Color of the track border when the SplitSwitchButton is disabled and unchecked |