FilledTonalToggleButtonDefaults


Contains default values used by FilledTonalToggleButton.

Summary

Public functions

ToggleButtonColors

Creates a ToggleButtonColors that represents the default container and content colors used in a FilledTonalToggleButton.

Cmn
ToggleButtonColors
@Composable
colors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    checkedContainerColor: Color,
    checkedContentColor: Color
)

Creates a ToggleButtonColors that represents the default container and content colors used in a FilledTonalToggleButton.

Cmn
ToggleButtonElevation
@Composable
elevation(
    defaultElevation: Dp,
    pressedElevation: Dp,
    focusedElevation: Dp,
    hoveredElevation: Dp,
    disabledElevation: Dp
)

Creates a ToggleButtonElevation that will animate between the provided values according to the Material specification for a FilledTonalToggleButton.

Cmn

Public functions

colors

@Composable
fun colors(): ToggleButtonColors

Creates a ToggleButtonColors that represents the default container and content colors used in a FilledTonalToggleButton.

colors

@Composable
fun colors(
    containerColor: Color = Color.Unspecified,
    contentColor: Color = Color.Unspecified,
    disabledContainerColor: Color = Color.Unspecified,
    disabledContentColor: Color = Color.Unspecified,
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified
): ToggleButtonColors

Creates a ToggleButtonColors that represents the default container and content colors used in a FilledTonalToggleButton.

Parameters
containerColor: Color = Color.Unspecified

the container color of this FilledTonalToggleButton when enabled.

contentColor: Color = Color.Unspecified

the content color of this FilledTonalToggleButton when enabled.

disabledContainerColor: Color = Color.Unspecified

the container color of this FilledTonalToggleButton when not enabled.

disabledContentColor: Color = Color.Unspecified

the content color of this FilledTonalToggleButton when not enabled.

checkedContainerColor: Color = Color.Unspecified

the container color of this FilledTonalToggleButton when checked.

checkedContentColor: Color = Color.Unspecified

the content color of this FilledTonalToggleButton when checked.

elevation

@Composable
fun elevation(
    defaultElevation: Dp = FilledTonalButtonTokens.ContainerElevation,
    pressedElevation: Dp = FilledTonalButtonTokens.PressedContainerElevation,
    focusedElevation: Dp = FilledTonalButtonTokens.FocusContainerElevation,
    hoveredElevation: Dp = FilledTonalButtonTokens.HoverContainerElevation,
    disabledElevation: Dp = 0.dp
): ToggleButtonElevation

Creates a ToggleButtonElevation that will animate between the provided values according to the Material specification for a FilledTonalToggleButton.

Parameters
defaultElevation: Dp = FilledTonalButtonTokens.ContainerElevation

the elevation used when the FilledTonalToggleButton is enabled, and has no other Interactions.

pressedElevation: Dp = FilledTonalButtonTokens.PressedContainerElevation

the elevation used when this FilledTonalToggleButton is enabled and pressed.

focusedElevation: Dp = FilledTonalButtonTokens.FocusContainerElevation

the elevation used when the FilledTonalToggleButton is enabled and focused.

hoveredElevation: Dp = FilledTonalButtonTokens.HoverContainerElevation

the elevation used when the FilledTonalToggleButton is enabled and hovered.

disabledElevation: Dp = 0.dp

the elevation used when the FilledTonalToggleButton is not enabled.