SwitchButtonDefaults
object SwitchButtonDefaults
Contains the default values used by SwitchButtons and SplitSwitchButtons
Summary
Public functions |
|
|---|---|
SplitSwitchButtonColors |
Creates a |
SplitSwitchButtonColors |
@ComposableCreates a |
SwitchButtonColors |
Creates a |
SwitchButtonColors |
@ComposableCreates a |
Public properties |
|
|---|---|
PaddingValues |
The default content padding used by |
Shape |
Recommended |
Shape |
Recommended |
Public functions
splitSwitchButtonColors
@Composable
fun splitSwitchButtonColors(): SplitSwitchButtonColors
Creates a SplitSwitchButtonColors for use in a SplitSwitchButton.
splitSwitchButtonColors
@Composable
fun splitSwitchButtonColors(
checkedContainerColor: Color = Color.Unspecified,
checkedContentColor: Color = Color.Unspecified,
checkedSecondaryContentColor: Color = Color.Unspecified,
checkedSplitContainerColor: Color = Color.Unspecified,
checkedThumbColor: Color = Color.Unspecified,
checkedThumbIconColor: Color = Color.Unspecified,
checkedTrackColor: Color = Color.Unspecified,
checkedTrackBorderColor: Color = Color.Unspecified,
uncheckedContainerColor: Color = Color.Unspecified,
uncheckedContentColor: Color = Color.Unspecified,
uncheckedSecondaryContentColor: Color = Color.Unspecified,
uncheckedSplitContainerColor: Color = Color.Unspecified,
uncheckedThumbColor: Color = Color.Unspecified,
uncheckedTrackColor: Color = Color.Unspecified,
uncheckedTrackBorderColor: Color = Color.Unspecified,
disabledCheckedContainerColor: Color = Color.Unspecified,
disabledCheckedContentColor: Color = Color.Unspecified,
disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
disabledCheckedSplitContainerColor: Color = Color.Unspecified,
disabledCheckedThumbColor: Color = Color.Unspecified,
disabledCheckedThumbIconColor: Color = Color.Unspecified,
disabledCheckedTrackColor: Color = Color.Unspecified,
disabledCheckedTrackBorderColor: Color = Color.Unspecified,
disabledUncheckedContainerColor: Color = Color.Unspecified,
disabledUncheckedContentColor: Color = Color.Unspecified,
disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
disabledUncheckedSplitContainerColor: Color = Color.Unspecified,
disabledUncheckedThumbColor: Color = Color.Unspecified,
disabledUncheckedTrackBorderColor: Color = Color.Unspecified
): SplitSwitchButtonColors
Creates a SplitSwitchButtonColors for use in a SplitSwitchButton.
| Parameters | |
|---|---|
checkedContainerColor: Color = Color.Unspecified |
The container color of the |
checkedContentColor: Color = Color.Unspecified |
The content color of the |
checkedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
checkedSplitContainerColor: Color = Color.Unspecified |
The split container color of the |
checkedThumbColor: Color = Color.Unspecified |
The thumb color of the |
checkedThumbIconColor: Color = Color.Unspecified |
The thumb icon color of the |
checkedTrackColor: Color = Color.Unspecified |
The track color of the |
checkedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
uncheckedContainerColor: Color = Color.Unspecified |
The container color of the |
uncheckedContentColor: Color = Color.Unspecified |
The content color of the |
uncheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
uncheckedSplitContainerColor: Color = Color.Unspecified |
The split container color of the |
uncheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
uncheckedTrackColor: Color = Color.Unspecified |
The track color of the |
uncheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
disabledCheckedContainerColor: Color = Color.Unspecified |
The container color of the |
disabledCheckedContentColor: Color = Color.Unspecified |
The content color of the |
disabledCheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
disabledCheckedSplitContainerColor: Color = Color.Unspecified |
The split container color of the SplitSwitchButton when disabled and checked. |
disabledCheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
disabledCheckedThumbIconColor: Color = Color.Unspecified |
The thumb icon color of the |
disabledCheckedTrackColor: Color = Color.Unspecified |
The track color of the |
disabledCheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
disabledUncheckedContainerColor: Color = Color.Unspecified |
The container color of the |
disabledUncheckedContentColor: Color = Color.Unspecified |
The content color of the |
disabledUncheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
disabledUncheckedSplitContainerColor: Color = Color.Unspecified |
The split container color of the |
disabledUncheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
disabledUncheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
switchButtonColors
@Composable
fun switchButtonColors(): SwitchButtonColors
Creates a SwitchButtonColors for use in a SwitchButton.
switchButtonColors
@Composable
fun switchButtonColors(
checkedContainerColor: Color = Color.Unspecified,
checkedContentColor: Color = Color.Unspecified,
checkedSecondaryContentColor: Color = Color.Unspecified,
checkedIconColor: Color = Color.Unspecified,
checkedThumbColor: Color = Color.Unspecified,
checkedThumbIconColor: Color = Color.Unspecified,
checkedTrackColor: Color = Color.Unspecified,
checkedTrackBorderColor: Color = Color.Unspecified,
uncheckedContainerColor: Color = Color.Unspecified,
uncheckedContentColor: Color = Color.Unspecified,
uncheckedSecondaryContentColor: Color = Color.Unspecified,
uncheckedIconColor: Color = Color.Unspecified,
uncheckedThumbColor: Color = Color.Unspecified,
uncheckedTrackColor: Color = Color.Unspecified,
uncheckedTrackBorderColor: Color = Color.Unspecified,
disabledCheckedContainerColor: Color = Color.Unspecified,
disabledCheckedContentColor: Color = Color.Unspecified,
disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
disabledCheckedIconColor: Color = Color.Unspecified,
disabledCheckedThumbColor: Color = Color.Unspecified,
disabledCheckedThumbIconColor: Color = Color.Unspecified,
disabledCheckedTrackColor: Color = Color.Unspecified,
disabledCheckedTrackBorderColor: Color = Color.Unspecified,
disabledUncheckedContainerColor: Color = Color.Unspecified,
disabledUncheckedContentColor: Color = Color.Unspecified,
disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
disabledUncheckedIconColor: Color = Color.Unspecified,
disabledUncheckedThumbColor: Color = Color.Unspecified,
disabledUncheckedTrackBorderColor: Color = Color.Unspecified
): SwitchButtonColors
Creates a SwitchButtonColors for use in a SwitchButton.
| Parameters | |
|---|---|
checkedContainerColor: Color = Color.Unspecified |
The container color of the |
checkedContentColor: Color = Color.Unspecified |
The content color of the |
checkedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
checkedIconColor: Color = Color.Unspecified |
The icon color of the |
checkedThumbColor: Color = Color.Unspecified |
The thumb color of the |
checkedThumbIconColor: Color = Color.Unspecified |
The thumb icon color of the |
checkedTrackColor: Color = Color.Unspecified |
The track color of the |
checkedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
uncheckedContainerColor: Color = Color.Unspecified |
The container color of the |
uncheckedContentColor: Color = Color.Unspecified |
The content color of a |
uncheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of this |
uncheckedIconColor: Color = Color.Unspecified |
The icon color of the |
uncheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
uncheckedTrackColor: Color = Color.Unspecified |
The track color of the |
uncheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
disabledCheckedContainerColor: Color = Color.Unspecified |
The container color of the |
disabledCheckedContentColor: Color = Color.Unspecified |
The content color of the |
disabledCheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of the |
disabledCheckedIconColor: Color = Color.Unspecified |
The icon color of the |
disabledCheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
disabledCheckedThumbIconColor: Color = Color.Unspecified |
The thumb icon color of the |
disabledCheckedTrackColor: Color = Color.Unspecified |
The track color of the |
disabledCheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
disabledUncheckedContainerColor: Color = Color.Unspecified |
The container color of the |
disabledUncheckedContentColor: Color = Color.Unspecified |
The content color of a |
disabledUncheckedSecondaryContentColor: Color = Color.Unspecified |
The secondary content color of this |
disabledUncheckedIconColor: Color = Color.Unspecified |
The icon color of the |
disabledUncheckedThumbColor: Color = Color.Unspecified |
The thumb color of the |
disabledUncheckedTrackBorderColor: Color = Color.Unspecified |
The track border color of the |
Public properties
ContentPadding
val ContentPadding: PaddingValues
The default content padding used by SwitchButton
splitSwitchButtonShape
val splitSwitchButtonShape: Shape
Recommended Shape for SplitSwitchButton.