iconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a IconToggleButton. LocalContentColor will be applied to the icon and down the UI tree.

See iconToggleButtonVibrantColors for default values that applies the recommended high contrast colors.


@Composable
fun iconToggleButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = StandardIconButtonTokens.DisabledOpacity), checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = Color.Unspecified): IconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a IconToggleButton. LocalContentColor will be applied to the icon and down the UI tree unless a custom contentColor is provided.

See iconToggleButtonVibrantColors for default values that applies the recommended high contrast colors.

Parameters

containerColor

the container color of this icon button when enabled.

contentColor

the content color of this icon button when enabled.

disabledContainerColor

the container color of this icon button when not enabled.

disabledContentColor

the content color of this icon button when not enabled.

checkedContainerColor

the container color of this icon button when checked.

checkedContentColor

the content color of this icon button when checked.