toggleButtonColors

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


@Composable
fun toggleButtonColors(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 ToggleButton.

Parameters

containerColor

the container color of this ToggleButton when enabled.

contentColor

the content color of this ToggleButton when enabled.

disabledContainerColor

the container color of this ToggleButton when not enabled.

disabledContentColor

the content color of this ToggleButton when not enabled.

checkedContainerColor

the container color of this ToggleButton when checked.

checkedContentColor

the content color of this ToggleButton when checked.