ToggleButtonDefaults


object ToggleButtonDefaults


Contains the default values used by ToggleButtons and SplitToggleButtons

Summary

Public functions

SplitToggleButtonColors

Creates a SplitToggleButtonColors for use in a SplitToggleButton.

SplitToggleButtonColors
@Composable
splitToggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedSplitContainerColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedSplitContainerColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedSplitContainerColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedSplitContainerColor: Color
)

Creates a SplitToggleButtonColors for use in a SplitToggleButton.

ToggleButtonColors

Creates a ToggleButtonColors for use in a ToggleButton.

ToggleButtonColors
@Composable
toggleButtonColors(
    checkedContainerColor: Color,
    checkedContentColor: Color,
    checkedSecondaryContentColor: Color,
    checkedIconColor: Color,
    uncheckedContainerColor: Color,
    uncheckedContentColor: Color,
    uncheckedSecondaryContentColor: Color,
    uncheckedIconColor: Color,
    disabledCheckedContainerColor: Color,
    disabledCheckedContentColor: Color,
    disabledCheckedSecondaryContentColor: Color,
    disabledCheckedIconColor: Color,
    disabledUncheckedContainerColor: Color,
    disabledUncheckedContentColor: Color,
    disabledUncheckedSecondaryContentColor: Color,
    disabledUncheckedIconColor: Color
)

Creates a ToggleButtonColors for use in a ToggleButton.

Public properties

PaddingValues

The default content padding used by ToggleButton

Public functions

splitToggleButtonColors

Added in 1.0.0-alpha21
@Composable
fun splitToggleButtonColors(): SplitToggleButtonColors

Creates a SplitToggleButtonColors for use in a SplitToggleButton.

splitToggleButtonColors

@Composable
fun splitToggleButtonColors(
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified,
    checkedSecondaryContentColor: Color = Color.Unspecified,
    checkedSplitContainerColor: Color = Color.Unspecified,
    uncheckedContainerColor: Color = Color.Unspecified,
    uncheckedContentColor: Color = Color.Unspecified,
    uncheckedSecondaryContentColor: Color = Color.Unspecified,
    uncheckedSplitContainerColor: Color = Color.Unspecified,
    disabledCheckedContainerColor: Color = Color.Unspecified,
    disabledCheckedContentColor: Color = Color.Unspecified,
    disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledCheckedSplitContainerColor: Color = Color.Unspecified,
    disabledUncheckedContainerColor: Color = Color.Unspecified,
    disabledUncheckedContentColor: Color = Color.Unspecified,
    disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledUncheckedSplitContainerColor: Color = Color.Unspecified
): SplitToggleButtonColors

Creates a SplitToggleButtonColors for use in a SplitToggleButton.

Parameters
checkedContainerColor: Color = Color.Unspecified

The container color of the SplitToggleButton when enabled and checked.

checkedContentColor: Color = Color.Unspecified

The content color of the SplitToggleButton when enabled and checked.

checkedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitToggleButton when enabled and checked, used for secondaryLabel content.

checkedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitToggleButton when enabled and checked.

uncheckedContainerColor: Color = Color.Unspecified

The container color of the SplitToggleButton when enabled and unchecked.

uncheckedContentColor: Color = Color.Unspecified

The content color of the SplitToggleButton when enabled and unchecked.

uncheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitToggleButton when enabled and unchecked, used for secondaryLabel content.

uncheckedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitToggleButton when enabled and unchecked.

disabledCheckedContainerColor: Color = Color.Unspecified

The container color of the SplitToggleButton when disabled and checked.

disabledCheckedContentColor: Color = Color.Unspecified

The content color of the SplitToggleButton when disabled and checked.

disabledCheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitToggleButton when disabled and checked, used for secondaryLabel content.

disabledCheckedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitToggleButton when disabled and checked.

disabledUncheckedContainerColor: Color = Color.Unspecified

The container color of the SplitToggleButton when disabled and unchecked.

disabledUncheckedContentColor: Color = Color.Unspecified

The content color of the SplitToggleButton when disabled and unchecked.

disabledUncheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitToggleButton when disabled and unchecked, used for secondaryLabel content.

disabledUncheckedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitToggleButton when disabled and unchecked.

toggleButtonColors

Added in 1.0.0-alpha21
@Composable
fun toggleButtonColors(): ToggleButtonColors

Creates a ToggleButtonColors for use in a ToggleButton.

toggleButtonColors

@Composable
fun toggleButtonColors(
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified,
    checkedSecondaryContentColor: Color = Color.Unspecified,
    checkedIconColor: Color = Color.Unspecified,
    uncheckedContainerColor: Color = Color.Unspecified,
    uncheckedContentColor: Color = Color.Unspecified,
    uncheckedSecondaryContentColor: Color = Color.Unspecified,
    uncheckedIconColor: Color = Color.Unspecified,
    disabledCheckedContainerColor: Color = Color.Unspecified,
    disabledCheckedContentColor: Color = Color.Unspecified,
    disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledCheckedIconColor: Color = Color.Unspecified,
    disabledUncheckedContainerColor: Color = Color.Unspecified,
    disabledUncheckedContentColor: Color = Color.Unspecified,
    disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledUncheckedIconColor: Color = Color.Unspecified
): ToggleButtonColors

Creates a ToggleButtonColors for use in a ToggleButton.

Parameters
checkedContainerColor: Color = Color.Unspecified

The container color of the ToggleButton when enabled and checked.

checkedContentColor: Color = Color.Unspecified

The content color of the ToggleButton when enabled and checked.

checkedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the ToggleButton when enabled and checked, used for secondaryLabel content.

checkedIconColor: Color = Color.Unspecified

The icon color of the ToggleButton when enabled and checked.

uncheckedContainerColor: Color = Color.Unspecified

The container color of the ToggleButton when enabled and unchecked.

uncheckedContentColor: Color = Color.Unspecified

The content color of a ToggleButton when enabled and unchecked.

uncheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of this ToggleButton when enabled and unchecked, used for secondaryLabel content

uncheckedIconColor: Color = Color.Unspecified

The icon color of the ToggleButton when enabled and unchecked.

disabledCheckedContainerColor: Color = Color.Unspecified

The container color of the ToggleButton when disabled and checked.

disabledCheckedContentColor: Color = Color.Unspecified

The content color of the ToggleButton when disabled and checked.

disabledCheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the ToggleButton when disabled and checked, used for secondaryLabel content.

disabledCheckedIconColor: Color = Color.Unspecified

The icon color of the ToggleButton when disabled and checked.

disabledUncheckedContainerColor: Color = Color.Unspecified

The container color of the ToggleButton when disabled and unchecked.

disabledUncheckedContentColor: Color = Color.Unspecified

The content color of a ToggleButton when disabled and unchecked.

disabledUncheckedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of this ToggleButton when disabled and unchecked, used for secondaryLabel content

disabledUncheckedIconColor: Color = Color.Unspecified

The icon color of the ToggleButton when disabled and unchecked.

Public properties

ContentPadding

Added in 1.0.0-alpha21
val ContentPaddingPaddingValues

The default content padding used by ToggleButton