iconButtonColors

Contains the default values used by IconButton. LocalContentColor will be applied to the icon and down the UI tree.

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


@Composable
fun iconButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = StandardIconButtonTokens.DisabledOpacity)): IconButtonColors

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

See iconButtonVibrantColors 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. By default, this will use the current LocalContentColor value.

disabledContainerColor

the container color of this icon button when not enabled.

disabledContentColor

the content color of this icon button when not enabled.