# ButtonDefaults

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.ButtonDefaults) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

*** ** * ** ***


```
object ButtonDefaults
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledButtonColors()()` `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button representing the primary, most important or most common action on a screen. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledTonalButtonColors()()` `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the medium-emphasis button. |
| `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` | `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope.https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonDefaults#(androidx.wear.protolayout.material3.MaterialScope).filledVariantButtonColors()()` Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button. |

## Public functions

### MaterialScope.filledButtonColors

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+function:filledButtonColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledButtonColors(): ButtonColors
```

`https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button representing the primary, most important or most common action on a screen.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primary()` for background color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onPrimary()` for content color from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledTonalButtonColors

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+function:filledTonalButtonColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledTonalButtonColors(): ButtonColors
```

`https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the medium-emphasis button.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#surfaceContainer()` for background color, `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onSurface()` for content color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primary()` for icon from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.

### MaterialScope.filledVariantButtonColors

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+function:filledVariantButtonColors) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
fun MaterialScope.filledVariantButtonColors(): ButtonColors
```

Alternative `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ButtonColors` for the high-emphasis button.

These colors are using `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#primaryContainer()` for background color and `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme#onPrimaryContainer()` for content color from the given `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/MaterialScope`'s `https://developer.android.com/reference/kotlin/androidx/wear/protolayout/material3/ColorScheme`.