RemoteSwitchButtonDefaults

object RemoteSwitchButtonDefaults


Contains the default values used by RemoteSwitchButton.

Summary

Public functions

RemoteSwitchButtonColors

Creates a RemoteSwitchButtonColors with default values for RemoteSwitchButton.

RemoteSwitchButtonColors
@Composable
switchButtonColors(
    checkedContainerColor: RemoteColor?,
    checkedContentColor: RemoteColor?,
    checkedSecondaryContentColor: RemoteColor?,
    checkedIconColor: RemoteColor?,
    checkedThumbColor: RemoteColor?,
    checkedThumbIconColor: RemoteColor?,
    checkedTrackColor: RemoteColor?,
    checkedTrackBorderColor: RemoteColor?,
    uncheckedContainerColor: RemoteColor?,
    uncheckedContentColor: RemoteColor?,
    uncheckedSecondaryContentColor: RemoteColor?,
    uncheckedIconColor: RemoteColor?,
    uncheckedThumbColor: RemoteColor?,
    uncheckedTrackColor: RemoteColor?,
    uncheckedTrackBorderColor: RemoteColor?,
    disabledCheckedContainerColor: RemoteColor?,
    disabledCheckedContentColor: RemoteColor?,
    disabledCheckedSecondaryContentColor: RemoteColor?,
    disabledCheckedIconColor: RemoteColor?,
    disabledCheckedThumbColor: RemoteColor?,
    disabledCheckedThumbIconColor: RemoteColor?,
    disabledCheckedTrackColor: RemoteColor?,
    disabledCheckedTrackBorderColor: RemoteColor?,
    disabledUncheckedContainerColor: RemoteColor?,
    disabledUncheckedContentColor: RemoteColor?,
    disabledUncheckedSecondaryContentColor: RemoteColor?,
    disabledUncheckedIconColor: RemoteColor?,
    disabledUncheckedThumbColor: RemoteColor?,
    disabledUncheckedTrackBorderColor: RemoteColor?
)

Creates a RemoteSwitchButtonColors with customized colors for RemoteSwitchButton.

Public properties

RemotePaddingValues

The default content padding used by RemoteSwitchButton.

RemoteDp

The default height of RemoteSwitchButton.

RemoteDp

The recommended default size for icons when used inside RemoteSwitchButton.

RemoteDp

The default spacing between an icon and label in RemoteSwitchButton.

RemoteDp

The default spacing between label and secondary label in RemoteSwitchButton.

RemoteDp

The total height of the switch control area.

RemoteDp

The height of the inner switch control track.

RemoteDp

The width of the switch track stroke/border.

RemoteDp

The width of the switch control track.

RemoteDp

The radius of the thumb when checked.

RemoteDp

The radius of the thumb when unchecked.

RemoteRoundedCornerShape

The default shape for RemoteSwitchButton.

Public functions

switchButtonColors

Added in 1.0.0-alpha12
@Composable
fun switchButtonColors(): RemoteSwitchButtonColors

Creates a RemoteSwitchButtonColors with default values for RemoteSwitchButton.

switchButtonColors

Added in 1.0.0-alpha12
@Composable
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: RemoteColor? = null

Container color when checked and enabled.

checkedContentColor: RemoteColor? = null

Content color when checked and enabled.

checkedSecondaryContentColor: RemoteColor? = null

Secondary content color when checked and enabled.

checkedIconColor: RemoteColor? = null

Icon color when checked and enabled.

checkedThumbColor: RemoteColor? = null

Thumb color when checked and enabled.

checkedThumbIconColor: RemoteColor? = null

Thumb icon color when checked and enabled.

checkedTrackColor: RemoteColor? = null

Track color when checked and enabled.

checkedTrackBorderColor: RemoteColor? = null

Track border color when checked and enabled.

uncheckedContainerColor: RemoteColor? = null

Container color when unchecked and enabled.

uncheckedContentColor: RemoteColor? = null

Content color when unchecked and enabled.

uncheckedSecondaryContentColor: RemoteColor? = null

Secondary content color when unchecked and enabled.

uncheckedIconColor: RemoteColor? = null

Icon color when unchecked and enabled.

uncheckedThumbColor: RemoteColor? = null

Thumb color when unchecked and enabled.

uncheckedTrackColor: RemoteColor? = null

Track color when unchecked and enabled.

uncheckedTrackBorderColor: RemoteColor? = null

Track border color when unchecked and enabled.

disabledCheckedContainerColor: RemoteColor? = null

Container color when checked and disabled.

disabledCheckedContentColor: RemoteColor? = null

Content color when checked and disabled.

disabledCheckedSecondaryContentColor: RemoteColor? = null

Secondary content color when checked and disabled.

disabledCheckedIconColor: RemoteColor? = null

Icon color when checked and disabled.

disabledCheckedThumbColor: RemoteColor? = null

Thumb color when checked and disabled.

disabledCheckedThumbIconColor: RemoteColor? = null

Thumb icon color when checked and disabled.

disabledCheckedTrackColor: RemoteColor? = null

Track color when checked and disabled.

disabledCheckedTrackBorderColor: RemoteColor? = null

Track border color when checked and disabled.

disabledUncheckedContainerColor: RemoteColor? = null

Container color when unchecked and disabled.

disabledUncheckedContentColor: RemoteColor? = null

Content color when unchecked and disabled.

disabledUncheckedSecondaryContentColor: RemoteColor? = null

Secondary content color when unchecked and disabled.

disabledUncheckedIconColor: RemoteColor? = null

Icon color when unchecked and disabled.

disabledUncheckedThumbColor: RemoteColor? = null

Thumb color when unchecked and disabled.

disabledUncheckedTrackBorderColor: RemoteColor? = null

Track border color when unchecked and disabled.

Public properties

ContentPadding

Added in 1.0.0-alpha12
val ContentPaddingRemotePaddingValues

The default content padding used by RemoteSwitchButton.

Height

Added in 1.0.0-alpha12
val HeightRemoteDp

The default height of RemoteSwitchButton.

IconSize

Added in 1.0.0-alpha12
val IconSizeRemoteDp

The recommended default size for icons when used inside RemoteSwitchButton.

IconSpacing

Added in 1.0.0-alpha12
val IconSpacingRemoteDp

The default spacing between an icon and label in RemoteSwitchButton.

LabelSpacerSize

Added in 1.0.0-alpha12
val LabelSpacerSizeRemoteDp

The default spacing between label and secondary label in RemoteSwitchButton.

SwitchHeight

Added in 1.0.0-alpha12
val SwitchHeightRemoteDp

The total height of the switch control area.

SwitchInnerHeight

Added in 1.0.0-alpha12
val SwitchInnerHeightRemoteDp

The height of the inner switch control track.

SwitchTrackWidth

Added in 1.0.0-alpha12
val SwitchTrackWidthRemoteDp

The width of the switch track stroke/border.

SwitchWidth

Added in 1.0.0-alpha12
val SwitchWidthRemoteDp

The width of the switch control track.

ThumbRadiusChecked

Added in 1.0.0-alpha12
val ThumbRadiusCheckedRemoteDp

The radius of the thumb when checked.

ThumbRadiusUnchecked

Added in 1.0.0-alpha12
val ThumbRadiusUncheckedRemoteDp

The radius of the thumb when unchecked.

switchButtonShape

val switchButtonShapeRemoteRoundedCornerShape

The default shape for RemoteSwitchButton.