tonalToggleButtonColors

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


@Composable
fun tonalToggleButtonColors(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 TonalToggleButton.

Parameters

containerColor

the container color of this TonalToggleButton when enabled.

contentColor

the content color of this TonalToggleButton when enabled.

disabledContainerColor

the container color of this TonalToggleButton when not enabled.

disabledContentColor

the content color of this TonalToggleButton when not enabled.

checkedContainerColor

the container color of this TonalToggleButton when checked.

checkedContentColor

the content color of this TonalToggleButton when checked.