# IconButtonColors

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/IconButton.kt+class:androidx.wear.compose.material3.IconButtonColors) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class IconButtonColors
```

<br />

*** ** * ** ***

Represents the container and content colors used in an icon button in different states.

- See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonDefaults#filledIconButtonColors()` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonDefaults#filledTonalIconButtonColors()` for the default colors used in a `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#FilledIconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.IconButtonShapes,androidx.wear.compose.material3.IconButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

- See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonDefaults#outlinedIconButtonColors()` for the default colors used in an `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/package-summary#OutlinedIconButton(kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.String,kotlin.Boolean,androidx.wear.compose.material3.IconButtonShapes,androidx.wear.compose.material3.IconButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#IconButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors`, optionally overriding some of the values. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#containerColor()` the background color of this icon button when enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#contentColor()` the color of this icon when enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#disabledContainerColor()` the background color of this icon button when not enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors#disabledContentColor()` the color of this icon when not enabled. |

## Public constructors

### IconButtonColors

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

```
IconButtonColors(
    containerColor: Color,
    contentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color
)
```

| Parameters |
|---|---|
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the background color of this icon button when enabled. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color of this icon when enabled. |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the background color of this icon button when not enabled. |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color of this icon when not enabled. |

## Public functions

### copy

Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0)

```
fun copy(
    containerColor: Color = this.containerColor,
    contentColor: Color = this.contentColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledContentColor: Color = this.disabledContentColor
): IconButtonColors
```

Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/IconButtonColors`, optionally overriding some of the values.

| Parameters |
|---|---|
| `containerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.containerColor` | the background color of this icon button when enabled. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.contentColor` | the color of this icon when enabled. |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledContainerColor` | the background color of this icon button when not enabled. |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledContentColor` | the color of this icon when not enabled. |

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### containerColor

```
val containerColor: Color
```

the background color of this icon button when enabled.

### contentColor

```
val contentColor: Color
```

the color of this icon when enabled.

### disabledContainerColor

```
val disabledContainerColor: Color
```

the background color of this icon button when not enabled.

### disabledContentColor

```
val disabledContentColor: Color
```

the color of this icon when not enabled.