public object RemoteSwitchButtonDefaults
Contains the default values used by RemoteSwitchButton.
Properties
Height
public val Height: RemoteDp = 52.rdp
The default height of RemoteSwitchButton.
IconSpacing
public val IconSpacing: RemoteDp = 6.rdp
The default spacing between an icon and label in RemoteSwitchButton.
IconSize
public val IconSize: RemoteDp = 24.rdp
The recommended default size for icons when used inside RemoteSwitchButton.
LabelSpacerSize
public val LabelSpacerSize: RemoteDp = 1.rdp
The default spacing between label and secondary label in RemoteSwitchButton.
ContentPadding
public val ContentPadding: RemotePaddingValues =
RemotePaddingValues(horizontal = 14.rdp, vertical = 8.rdp)
The default content padding used by RemoteSwitchButton.
switchButtonShape
public val switchButtonShape: RemoteRoundedCornerShape
The default shape for RemoteSwitchButton.
SwitchWidth
public val SwitchWidth: RemoteDp = 32.rdp
The width of the switch control track.
SwitchHeight
public val SwitchHeight: RemoteDp = 24.rdp
The total height of the switch control area.
SwitchInnerHeight
public val SwitchInnerHeight: RemoteDp = 22.rdp
The height of the inner switch control track.
SwitchTrackWidth
public val SwitchTrackWidth: RemoteDp = 2.rdp
The width of the switch track stroke/border.
ThumbRadiusUnchecked
public val ThumbRadiusUnchecked: RemoteDp = 6.rdp
The radius of the thumb when unchecked.
ThumbRadiusChecked
public val ThumbRadiusChecked: RemoteDp = 9.rdp
The radius of the thumb when checked.
Functions
switchButtonColors
@Composable
public fun switchButtonColors(): RemoteSwitchButtonColors
Creates a RemoteSwitchButtonColors with default values for RemoteSwitchButton.
switchButtonColors
@Composable
public fun switchButtonColors(
checkedContainerColor: RemoteColor? = null,
checkedContentColor: RemoteColor? = null,
checkedSecondaryContentColor: RemoteColor? = null,
checkedIconColor: RemoteColor? = null,
checkedThumbColor: RemoteColor? = null,
checkedThumbIconColor: RemoteColor? = null,
checkedTrackColor: RemoteColor? = null,
checkedTrackBorderColor: RemoteColor? = null,
uncheckedContainerColor: RemoteColor? = null,
uncheckedContentColor: RemoteColor? = null,
uncheckedSecondaryContentColor: RemoteColor? = null,
uncheckedIconColor: RemoteColor? = null,
uncheckedThumbColor: RemoteColor? = null,
uncheckedTrackColor: RemoteColor? = null,
uncheckedTrackBorderColor: RemoteColor? = null,
disabledCheckedContainerColor: RemoteColor? = null,
disabledCheckedContentColor: RemoteColor? = null,
disabledCheckedSecondaryContentColor: RemoteColor? = null,
disabledCheckedIconColor: RemoteColor? = null,
disabledCheckedThumbColor: RemoteColor? = null,
disabledCheckedThumbIconColor: RemoteColor? = null,
disabledCheckedTrackColor: RemoteColor? = null,
disabledCheckedTrackBorderColor: RemoteColor? = null,
disabledUncheckedContainerColor: RemoteColor? = null,
disabledUncheckedContentColor: RemoteColor? = null,
disabledUncheckedSecondaryContentColor: RemoteColor? = null,
disabledUncheckedIconColor: RemoteColor? = null,
disabledUncheckedThumbColor: RemoteColor? = null,
disabledUncheckedTrackBorderColor: RemoteColor? = null,
): RemoteSwitchButtonColors
Creates a RemoteSwitchButtonColors with customized colors for RemoteSwitchButton.
Parameters
| checkedContainerColor | Container color when checked and enabled. |
| checkedContentColor | Content color when checked and enabled. |
| checkedSecondaryContentColor | Secondary content color when checked and enabled. |
| checkedIconColor | Icon color when checked and enabled. |
| checkedThumbColor | Thumb color when checked and enabled. |
| checkedThumbIconColor | Thumb icon color when checked and enabled. |
| checkedTrackColor | Track color when checked and enabled. |
| checkedTrackBorderColor | Track border color when checked and enabled. |
| uncheckedContainerColor | Container color when unchecked and enabled. |
| uncheckedContentColor | Content color when unchecked and enabled. |
| uncheckedSecondaryContentColor | Secondary content color when unchecked and enabled. |
| uncheckedIconColor | Icon color when unchecked and enabled. |
| uncheckedThumbColor | Thumb color when unchecked and enabled. |
| uncheckedTrackColor | Track color when unchecked and enabled. |
| uncheckedTrackBorderColor | Track border color when unchecked and enabled. |
| disabledCheckedContainerColor | Container color when checked and disabled. |
| disabledCheckedContentColor | Content color when checked and disabled. |
| disabledCheckedSecondaryContentColor | Secondary content color when checked and disabled. |
| disabledCheckedIconColor | Icon color when checked and disabled. |
| disabledCheckedThumbColor | Thumb color when checked and disabled. |
| disabledCheckedThumbIconColor | Thumb icon color when checked and disabled. |
| disabledCheckedTrackColor | Track color when checked and disabled. |
| disabledCheckedTrackBorderColor | Track border color when checked and disabled. |
| disabledUncheckedContainerColor | Container color when unchecked and disabled. |
| disabledUncheckedContentColor | Content color when unchecked and disabled. |
| disabledUncheckedSecondaryContentColor | Secondary content color when unchecked and disabled. |
| disabledUncheckedIconColor | Icon color when unchecked and disabled. |
| disabledUncheckedThumbColor | Thumb color when unchecked and disabled. |
| disabledUncheckedTrackBorderColor | Track border color when unchecked and disabled. |