# ButtonColors

# ButtonColors

Artifact:[androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/Button.kt+class:androidx.glance.ButtonColors)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

<br />

```
class ButtonColors
```

<br />

*** ** * ** ***

Represents the colors used to style a button, prefer this to using the modifier.

## Summary

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/glance/ButtonColors#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/glance/ButtonColors#hashCode())`()`                                                                                            |

|                                       ### Public properties                                        |
|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
| [ColorProvider](https://developer.android.com/reference/kotlin/androidx/glance/unit/ColorProvider) | [backgroundColor](https://developer.android.com/reference/kotlin/androidx/glance/ButtonColors#backgroundColor()) |
| [ColorProvider](https://developer.android.com/reference/kotlin/androidx/glance/unit/ColorProvider) | [contentColor](https://developer.android.com/reference/kotlin/androidx/glance/ButtonColors#contentColor())       |

## Public functions

### equals

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

### hashCode

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

## Public properties

### backgroundColor

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
val backgroundColor: ColorProvider
```  

### contentColor

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
val contentColor: ColorProvider
```