# IconToggleButtonColors

Artifact: [androidx.xr.glimmer:glimmer](https://developer.android.com/jetpack/androidx/releases/xr-glimmer) [View Source](https://cs.android.com/search?q=file:androidx/xr/glimmer/IconToggleButton.kt+class:androidx.xr.glimmer.IconToggleButtonColors) Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)


```
class IconToggleButtonColors
```

<br />

*** ** * ** ***

Represents the colors used by an `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButton.composable#IconToggleButton(kotlin.Boolean,kotlin.Function1,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.xr.glimmer.IconToggleButtonColors,kotlin.Boolean,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)` in different states.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#IconToggleButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( backgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, checkedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedCheckedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, checkedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedCheckedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( backgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, checkedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedCheckedBackgroundColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, checkedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, focusedCheckedContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors`, 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/xr/glimmer/IconToggleButtonColors#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/xr/glimmer/IconToggleButtonColors#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#backgroundColor()` the background color when the button is unchecked and unfocused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#checkedBackgroundColor()` the background color when the button is checked and unfocused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#checkedContentColor()` the content color when the button is checked and unfocused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#contentColor()` the content color when the button is unchecked and unfocused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#focusedBackgroundColor()` the background color when the button is unchecked and focused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#focusedCheckedBackgroundColor()` the background color when the button is checked and focused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#focusedCheckedContentColor()` the content color when the button is checked and focused |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors#focusedContentColor()` the content color when the button is unchecked and focused |

## Public constructors

### IconToggleButtonColors

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
IconToggleButtonColors(
    backgroundColor: Color,
    focusedBackgroundColor: Color,
    checkedBackgroundColor: Color,
    focusedCheckedBackgroundColor: Color,
    contentColor: Color,
    focusedContentColor: Color,
    checkedContentColor: Color,
    focusedCheckedContentColor: Color
)
```

## Public functions

### copy

Added in [1.0.0-alpha22](https://developer.android.com/jetpack/androidx/releases/xr-glimmer#1.0.0-alpha22)

```
fun copy(
    backgroundColor: Color = this.backgroundColor,
    focusedBackgroundColor: Color = this.focusedBackgroundColor,
    checkedBackgroundColor: Color = this.checkedBackgroundColor,
    focusedCheckedBackgroundColor: Color = this.focusedCheckedBackgroundColor,
    contentColor: Color = this.contentColor,
    focusedContentColor: Color = this.focusedContentColor,
    checkedContentColor: Color = this.checkedContentColor,
    focusedCheckedContentColor: Color = this.focusedCheckedContentColor
): IconToggleButtonColors
```

Returns a copy of this `https://developer.android.com/reference/kotlin/androidx/xr/glimmer/IconToggleButtonColors`, optionally overriding some of the values.

### equals

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

### hashCode

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

## Public properties

### backgroundColor

```
val backgroundColor: Color
```

the background color when the button is unchecked and unfocused

### checkedBackgroundColor

```
val checkedBackgroundColor: Color
```

the background color when the button is checked and unfocused

### checkedContentColor

```
val checkedContentColor: Color
```

the content color when the button is checked and unfocused

### contentColor

```
val contentColor: Color
```

the content color when the button is unchecked and unfocused

### focusedBackgroundColor

```
val focusedBackgroundColor: Color
```

the background color when the button is unchecked and focused

### focusedCheckedBackgroundColor

```
val focusedCheckedBackgroundColor: Color
```

the background color when the button is checked and focused

### focusedCheckedContentColor

```
val focusedCheckedContentColor: Color
```

the content color when the button is checked and focused

### focusedContentColor

```
val focusedContentColor: Color
```

the content color when the button is unchecked and focused