IconButtonColors
Class
Android
public class IconButtonColors(
public val containerColor: Color,
public val contentColor: Color,
public val disabledContainerColor: Color,
public val disabledContentColor: Color,
)
Represents the container and content colors used in an icon button in different states.
- See
IconButtonDefaults.filledIconButtonColors
andIconButtonDefaults.filledTonalIconButtonColors
for the default colors used in aFilledIconButton
. - See
IconButtonDefaults.outlinedIconButtonColors
for the default colors used in anOutlinedIconButton
.
Parameters
containerColor | the background color of this icon button when enabled. |
contentColor | the color of this icon when enabled. |
disabledContainerColor | the background color of this icon button when not enabled. |
disabledContentColor | the color of this icon when not enabled. |
Functions
public fun copy(
containerColor: Color = this.containerColor,
contentColor: Color = this.contentColor,
disabledContainerColor: Color = this.disabledContainerColor,
disabledContentColor: Color = this.disabledContentColor,
): IconButtonColors
Returns a copy of this IconButtonColors
, optionally overriding some of the values.
Parameters
containerColor | the background color of this icon button when enabled. |
contentColor | the color of this icon when enabled. |
disabledContainerColor | the background color of this icon button when not enabled. |
disabledContentColor | the color of this icon when not enabled. |