SelectableButtonDefaults

object SelectableButtonDefaults


Contains the default values used by SelectableButtons and SplitSelectableButtons

Summary

Public functions

SelectableButtonColors

Creates a SelectableButtonColors for use in a SelectableButton.

SelectableButtonColors
@Composable
selectableButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedIconColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedIconColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedIconColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedIconColor: Color
)

Creates a SelectableButtonColors for use in a SelectableButton.

SplitSelectableButtonColors

Creates a SplitSelectableButtonColors for use in a SplitSelectableButton.

SplitSelectableButtonColors
@Composable
splitSelectableButtonColors(
    selectedContainerColor: Color,
    selectedContentColor: Color,
    selectedSecondaryContentColor: Color,
    selectedSplitContainerColor: Color,
    unselectedContainerColor: Color,
    unselectedContentColor: Color,
    unselectedSecondaryContentColor: Color,
    unselectedSplitContainerColor: Color,
    disabledSelectedContainerColor: Color,
    disabledSelectedContentColor: Color,
    disabledSelectedSecondaryContentColor: Color,
    disabledSelectedSplitContainerColor: Color,
    disabledUnselectedContainerColor: Color,
    disabledUnselectedContentColor: Color,
    disabledUnselectedSecondaryContentColor: Color,
    disabledUnselectedSplitContainerColor: Color
)

Creates a SplitSelectableButtonColors for use in a SplitSelectableButton.

Public properties

PaddingValues

The default content padding used by SelectableButton

Shape

Recommended Shape for SelectableButton.

Shape

Recommended Shape for SplitSelectableButton.

Public functions

selectableButtonColors

Added in 1.0.0-alpha24
@Composable
fun selectableButtonColors(): SelectableButtonColors

Creates a SelectableButtonColors for use in a SelectableButton.

selectableButtonColors

@Composable
fun selectableButtonColors(
    selectedContainerColor: Color = Color.Unspecified,
    selectedContentColor: Color = Color.Unspecified,
    selectedSecondaryContentColor: Color = Color.Unspecified,
    selectedIconColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedIconColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedIconColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedIconColor: Color = Color.Unspecified
): SelectableButtonColors

Creates a SelectableButtonColors for use in a SelectableButton.

Parameters
selectedContainerColor: Color = Color.Unspecified

The container color of the SelectableButton when enabled and selected.

selectedContentColor: Color = Color.Unspecified

The content color of the SelectableButton when enabled and selected.

selectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SelectableButton when enabled and selected, used for secondaryLabel content.

selectedIconColor: Color = Color.Unspecified

The icon color of the SelectableButton when enabled and selected.

unselectedContainerColor: Color = Color.Unspecified

The container color of the SelectableButton when enabled and not selected.

unselectedContentColor: Color = Color.Unspecified

The content color of a SelectableButton when enabled and not selected.

unselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of this SelectableButton when enabled and not selected, used for secondaryLabel content

unselectedIconColor: Color = Color.Unspecified

The icon color of the SelectableButton when enabled and not selected.

disabledSelectedContainerColor: Color = Color.Unspecified

The container color of the SelectableButton when disabled and selected.

disabledSelectedContentColor: Color = Color.Unspecified

The content color of the SelectableButton when disabled and selected.

disabledSelectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SelectableButton when disabled and selected, used for the secondary content.

disabledSelectedIconColor: Color = Color.Unspecified

The icon color of the SelectableButton when disabled and selected.

disabledUnselectedContainerColor: Color = Color.Unspecified

The container color of the SelectableButton when disabled and not selected.

disabledUnselectedContentColor: Color = Color.Unspecified

The content color of the SelectableButton when disabled and not selected.

disabledUnselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SelectableButton when disabled and not selected, used for secondary label content.

disabledUnselectedIconColor: Color = Color.Unspecified

The icon color of the SelectableButton when disabled and not selected.

splitSelectableButtonColors

@Composable
fun splitSelectableButtonColors(
    selectedContainerColor: Color = Color.Unspecified,
    selectedContentColor: Color = Color.Unspecified,
    selectedSecondaryContentColor: Color = Color.Unspecified,
    selectedSplitContainerColor: Color = Color.Unspecified,
    unselectedContainerColor: Color = Color.Unspecified,
    unselectedContentColor: Color = Color.Unspecified,
    unselectedSecondaryContentColor: Color = Color.Unspecified,
    unselectedSplitContainerColor: Color = Color.Unspecified,
    disabledSelectedContainerColor: Color = Color.Unspecified,
    disabledSelectedContentColor: Color = Color.Unspecified,
    disabledSelectedSecondaryContentColor: Color = Color.Unspecified,
    disabledSelectedSplitContainerColor: Color = Color.Unspecified,
    disabledUnselectedContainerColor: Color = Color.Unspecified,
    disabledUnselectedContentColor: Color = Color.Unspecified,
    disabledUnselectedSecondaryContentColor: Color = Color.Unspecified,
    disabledUnselectedSplitContainerColor: Color = Color.Unspecified
): SplitSelectableButtonColors

Creates a SplitSelectableButtonColors for use in a SplitSelectableButton.

Parameters
selectedContainerColor: Color = Color.Unspecified

The container color of the SplitSelectableButton when enabled and selected.

selectedContentColor: Color = Color.Unspecified

The content color of the SplitSelectableButton when enabled and selected.

selectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitSelectableButton when enabled and selected, used for secondaryLabel content.

selectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitSelectableButton when enabled and selected.

unselectedContainerColor: Color = Color.Unspecified

The container color of the SplitSelectableButton when enabled and not selected.

unselectedContentColor: Color = Color.Unspecified

The content color of the SplitSelectableButton when enabled and not selected.

unselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitSelectableButton when enabled and not selected, used for secondaryLabel content.

unselectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitSelectableButton when enabled and not selected.

disabledSelectedContainerColor: Color = Color.Unspecified

The container color of the SplitSelectableButton when disabled and selected.

disabledSelectedContentColor: Color = Color.Unspecified

The content color of the SplitSelectableButton when disabled and selected.

disabledSelectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitSelectableButton when disabled and selected, used for secondaryLabel content.

disabledSelectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitSelectableButton when disabled and selected.

disabledUnselectedContainerColor: Color = Color.Unspecified

The container color of the SplitSelectableButton when disabled and not selected.

disabledUnselectedContentColor: Color = Color.Unspecified

The content color of the SplitSelectableButton when disabled and not selected.

disabledUnselectedSecondaryContentColor: Color = Color.Unspecified

The secondary content color of the SplitSelectableButton when disabled and not selected, used for secondaryLabel content.

disabledUnselectedSplitContainerColor: Color = Color.Unspecified

The split container color of the SplitSelectableButton when disabled and not selected.

Public properties

ContentPadding

Added in 1.0.0-alpha24
val ContentPaddingPaddingValues

The default content padding used by SelectableButton

selectableButtonShape

Added in 1.0.0-alpha24
val selectableButtonShapeShape

Recommended Shape for SelectableButton.

splitSelectableButtonShape

Added in 1.0.0-alpha24
val splitSelectableButtonShapeShape

Recommended Shape for SplitSelectableButton.