> Documentation index: https://developer.android.com/reference/llms.txt

# DurationPickerColors

Artifact: [androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/DurationPicker.kt+class:androidx.wear.compose.material3.DurationPickerColors) Added in [1.8.0-alpha04](https://developer.android.com/jetpack/androidx/releases/wear-compose.md.txt#1.8.0-alpha04)


```
class DurationPickerColors
```

<br />

*** ** * ** ***

Represents the colors used by a `DurationPicker`.

## Summary

| ### Public constructors |
|---|
| `DurationPickerColors( selectedPickerContentColor: Color, unselectedPickerContentColor: Color, invalidPickerContentColor: Color, separatorColor: Color, pickerLabelColor: Color, confirmButtonContentColor: Color, confirmButtonContainerColor: Color, pickerBackgroundColor: Color )` |

| ### Public functions |
|---|---|
| `DurationPickerColors` | `copy( selectedPickerContentColor: Color, unselectedPickerContentColor: Color, invalidPickerContentColor: Color, separatorColor: Color, pickerLabelColor: Color, confirmButtonContentColor: Color, confirmButtonContainerColor: Color, pickerBackgroundColor: Color )` Returns a copy of this DurationPickerColors, optionally overriding some of the values. |
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |

| ### Public properties |
|---|---|
| `Color` | `confirmButtonContainerColor` The container color of the confirm button. |
| `Color` | `confirmButtonContentColor` The content color of the confirm button. |
| `Color` | `invalidPickerContentColor` The content color of invalid picker options. |
| `Color` | `pickerBackgroundColor` The background color of the picker, used for the top and bottom gradient fade on the picker columns. |
| `Color` | `pickerLabelColor` The color of the picker label. |
| `Color` | `selectedPickerContentColor` The content color of selected picker. |
| `Color` | `separatorColor` The color of separator between the pickers. |
| `Color` | `unselectedPickerContentColor` The content color of unselected pickers. |

## Public constructors

### DurationPickerColors

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

```
DurationPickerColors(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: Color,
    invalidPickerContentColor: Color,
    separatorColor: Color,
    pickerLabelColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color,
    pickerBackgroundColor: Color
)
```

| Parameters |
|---|---|
| `selectedPickerContentColor: Color` | The content color of selected picker. |
| `unselectedPickerContentColor: Color` | The content color of unselected pickers. |
| `invalidPickerContentColor: Color` | The content color of invalid picker options. |
| `separatorColor: Color` | The color of separator between the pickers. |
| `pickerLabelColor: Color` | The color of the picker label. |
| `confirmButtonContentColor: Color` | The content color of the confirm button. |
| `confirmButtonContainerColor: Color` | The container color of the confirm button. |
| `pickerBackgroundColor: Color` | The background color of the picker, used for the top and bottom gradient fade on the picker columns. `Color.Unspecified` makes the fade transparent, so it works on any background, including gradients and images. |

## Public functions

### copy

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

```
fun copy(
    selectedPickerContentColor: Color = this.selectedPickerContentColor,
    unselectedPickerContentColor: Color = this.unselectedPickerContentColor,
    invalidPickerContentColor: Color = this.invalidPickerContentColor,
    separatorColor: Color = this.separatorColor,
    pickerLabelColor: Color = this.pickerLabelColor,
    confirmButtonContentColor: Color = this.confirmButtonContentColor,
    confirmButtonContainerColor: Color = this.confirmButtonContainerColor,
    pickerBackgroundColor: Color = this.pickerBackgroundColor
): DurationPickerColors
```

Returns a copy of this DurationPickerColors, optionally overriding some of the values.

| Parameters |
|---|---|
| `selectedPickerContentColor: Color = this.selectedPickerContentColor` | The content color of selected picker. |
| `unselectedPickerContentColor: Color = this.unselectedPickerContentColor` | The content color of unselected pickers. |
| `invalidPickerContentColor: Color = this.invalidPickerContentColor` | The content color of invalid picker options. |
| `separatorColor: Color = this.separatorColor` | The color of separator between the pickers. |
| `pickerLabelColor: Color = this.pickerLabelColor` | The color of the picker label. |
| `confirmButtonContentColor: Color = this.confirmButtonContentColor` | The content color of the confirm button. |
| `confirmButtonContainerColor: Color = this.confirmButtonContainerColor` | The container color of the confirm button. |
| `pickerBackgroundColor: Color = this.pickerBackgroundColor` | The background color of the picker, used for the top and bottom gradient fade on the picker columns. |

### equals

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

### hashCode

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

## Public properties

### confirmButtonContainerColor

```
val confirmButtonContainerColor: Color
```

The container color of the confirm button.

### confirmButtonContentColor

```
val confirmButtonContentColor: Color
```

The content color of the confirm button.

### invalidPickerContentColor

```
val invalidPickerContentColor: Color
```

The content color of invalid picker options.

### pickerBackgroundColor

```
val pickerBackgroundColor: Color
```

The background color of the picker, used for the top and bottom gradient fade on the picker columns. `Color.Unspecified` makes the fade transparent, so it works on any background, including gradients and images.

### pickerLabelColor

```
val pickerLabelColor: Color
```

The color of the picker label.

### selectedPickerContentColor

```
val selectedPickerContentColor: Color
```

The content color of selected picker.

### separatorColor

```
val separatorColor: Color
```

The color of separator between the pickers.

### unselectedPickerContentColor

```
val unselectedPickerContentColor: Color
```

The content color of unselected pickers.