# TextButtonColors

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/TextButton.kt+class:androidx.wear.compose.material3.TextButtonColors) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
class TextButtonColors
```

<br />

*** ** * ** ***

Represents the container and content colors used in a text button in different states.

See `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTextButtonColors()`, `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#filledTonalTextButtonColors()`, `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#textButtonColors()` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonDefaults#outlinedTextButtonColors()` for `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors` with different levels of emphasis.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors#TextButtonColors(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/TextButtonColors` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors#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 TextButtonColors 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/TextButtonColors#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/TextButtonColors#hashCode()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors#containerColor()` the background color of this text button when enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors#contentColor()` the content color of this text button when enabled. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TextButtonColors#disabledContainerColor()` the background color of this text 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/TextButtonColors#disabledContentColor()` the content color of this text button when not enabled. |

## Public constructors

### TextButtonColors

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

```
TextButtonColors(
    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 text button when enabled. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the content color of this text button when enabled. |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the background color of this text button when not enabled. |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the content color of this text button when not enabled. |

## Public functions

### copy

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

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

Returns a copy of this TextButtonColors 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 text button when enabled. |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.contentColor` | the content color of this text button when enabled. |
| `disabledContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledContainerColor` | the background color of this text button when not enabled. |
| `disabledContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = this.disabledContentColor` | the content color of this text button 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 text button when enabled.

### contentColor

```
val contentColor: Color
```

the content color of this text button when enabled.

### disabledContainerColor

```
val disabledContainerColor: Color
```

the background color of this text button when not enabled.

### disabledContentColor

```
val disabledContentColor: Color
```

the content color of this text button when not enabled.