# ButtonColors

# ButtonColors

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/material3/ButtonColors "View this page in Java")

<br />

```
class ButtonColors
```

<br />

*** ** * ** ***

Represents the container and content colors used in buttons, such as[textEdgeButton](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/package-summary#(androidx.wear.protolayout.material3.MaterialScope).textEdgeButton(androidx.wear.protolayout.ModifiersBuilders.Clickable,androidx.wear.protolayout.modifiers.LayoutModifier,androidx.wear.protolayout.material3.ButtonColors,kotlin.Function1))or[iconEdgeButton](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/package-summary#(androidx.wear.protolayout.material3.MaterialScope).iconEdgeButton(androidx.wear.protolayout.ModifiersBuilders.Clickable,androidx.wear.protolayout.modifiers.LayoutModifier,androidx.wear.protolayout.material3.ButtonColors,kotlin.Function1)).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                            ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ButtonColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#ButtonColors(androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor))`(` ` containerColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` iconColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` labelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` secondaryLabelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) `)` |

|                                              ### Public functions                                               |
|-----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ButtonColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors) | [copy](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#copy(androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor,androidx.wear.protolayout.types.LayoutColor))`(` ` containerColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` iconColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` labelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)`,` ` secondaryLabelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) `)` Returns a copy of this[androidx.wear.protolayout.material3.ButtonColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors), optionally overriding some of the values. |

|                                           ### Public properties                                           |
|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) | [containerColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#containerColor()) The container color to be used for a button's background.    |
| [LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) | [iconColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#iconColor()) The icon tint color to be used for a button.                           |
| [LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) | [labelColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#labelColor()) The label color to be used for a button.                             |
| [LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor) | [secondaryLabelColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors#secondaryLabelColor()) The secondary label color to be used for a button. |

## Public constructors

### ButtonColors

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

```
ButtonColors(
    containerColor: LayoutColor = Color.BLACK.argb,
    iconColor: LayoutColor = Color.BLACK.argb,
    labelColor: LayoutColor = Color.BLACK.argb,
    secondaryLabelColor: LayoutColor = Color.BLACK.argb
)
```  

|                                                                      Parameters                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| `containerColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = Color.BLACK.argb`      | The container color to be used for a button's background. |
| `iconColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = Color.BLACK.argb`           | The icon tint color to be used for a button.              |
| `labelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = Color.BLACK.argb`          | The label color to be used for a button.                  |
| `secondaryLabelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = Color.BLACK.argb` | The secondary label color to be used for a button.        |

## Public functions

### copy

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

```
fun copy(
    containerColor: LayoutColor = this.containerColor,
    iconColor: LayoutColor = this.iconColor,
    labelColor: LayoutColor = this.labelColor,
    secondaryLabelColor: LayoutColor = this.secondaryLabelColor
): ButtonColors
```

Returns a copy of this[androidx.wear.protolayout.material3.ButtonColors](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors), optionally overriding some of the values.  

|                                                                          Parameters                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| `containerColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = this.containerColor`           | The container color to be used for a button's background. |
| `iconColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = this.iconColor`                     | The icon tint color to be used for a button.              |
| `labelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = this.labelColor`                   | The label color to be used for a button.                  |
| `secondaryLabelColor: `[LayoutColor](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/types/LayoutColor)` = this.secondaryLabelColor` | The secondary label color to be used for a button.        |

## Public properties

### containerColor

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

```
val containerColor: LayoutColor
```

The container color to be used for a button's background.  

### iconColor

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

```
val iconColor: LayoutColor
```

The icon tint color to be used for a button.  

### labelColor

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

```
val labelColor: LayoutColor
```

The label color to be used for a button.  

### secondaryLabelColor

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

```
val secondaryLabelColor: LayoutColor
```

The secondary label color to be used for a button.