# SegmentedButtonColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/SegmentedButton.kt+class:androidx.compose.material3.SegmentedButtonColors) Common/AllAndroid/JVM
- Cmn

  ```
  class SegmentedButtonColors
  ```

*** ** * ** ***

The different colors used in parts of the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButton.composable#(androidx.compose.material3.MultiChoiceSegmentedButtonRowScope).SegmentedButton(kotlin.Boolean,kotlin.Function1,androidx.compose.ui.graphics.Shape,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.compose.material3.SegmentedButtonColors,androidx.compose.foundation.BorderStroke,androidx.compose.foundation.layout.PaddingValues,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0,kotlin.Function0)` in different states

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#SegmentedButtonColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( activeContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` create an instance with arbitrary colors, see `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonDefaults` for a factory method using the default material3 spec | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( activeContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this ChipColors, optionally overriding some of the ues. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#activeBorderColor()` the color used for the border when enabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#activeContainerColor()` the color used for the container when enabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#activeContentColor()` the color used for the content when enabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledActiveBorderColor()` the color used for the border when disabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledActiveContainerColor()` the color used for the container when disabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledActiveContentColor()` the color used for the content when disabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledInactiveBorderColor()` the color used for the border when disabled and inactive | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledInactiveContainerColor()` the color used for the container when disabled and inactive | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#disabledInactiveContentColor()` the color used for the content when disabled and inactive | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#inactiveBorderColor()` the color used for the border when enabled and active | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#inactiveContainerColor()` the color used for the container when enabled and inactive | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonColors#inactiveContentColor()` the color used for the content when enabled and inactive | Cmn |

## Public constructors

### SegmentedButtonColors

Cmn

```
SegmentedButtonColors(
    activeContainerColor: Color,
    activeContentColor: Color,
    activeBorderColor: Color,
    inactiveContainerColor: Color,
    inactiveContentColor: Color,
    inactiveBorderColor: Color,
    disabledActiveContainerColor: Color,
    disabledActiveContentColor: Color,
    disabledActiveBorderColor: Color,
    disabledInactiveContainerColor: Color,
    disabledInactiveContentColor: Color,
    disabledInactiveBorderColor: Color
)
```

create an instance with arbitrary colors, see `https://developer.android.com/reference/kotlin/androidx/compose/material3/SegmentedButtonDefaults` for a factory method using the default material3 spec

| Parameters |
|---|---|
| `activeContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the container when enabled and active |
| `activeContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the content when enabled and active |
| `activeBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the border when enabled and active |
| `inactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the container when enabled and inactive |
| `inactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the content when enabled and inactive |
| `inactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the border when enabled and active |
| `disabledActiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the container when disabled and active |
| `disabledActiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the content when disabled and active |
| `disabledActiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the border when disabled and active |
| `disabledInactiveContainerColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the container when disabled and inactive |
| `disabledInactiveContentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the content when disabled and inactive |
| `disabledInactiveBorderColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the color used for the border when disabled and inactive |

## Public functions

### copy

Cmn

```
fun copy(
    activeContainerColor: Color = this.activeContainerColor,
    activeContentColor: Color = this.activeContentColor,
    activeBorderColor: Color = this.activeBorderColor,
    inactiveContainerColor: Color = this.inactiveContainerColor,
    inactiveContentColor: Color = this.inactiveContentColor,
    inactiveBorderColor: Color = this.inactiveBorderColor,
    disabledActiveContainerColor: Color = this.disabledActiveContainerColor,
    disabledActiveContentColor: Color = this.disabledActiveContentColor,
    disabledActiveBorderColor: Color = this.disabledActiveBorderColor,
    disabledInactiveContainerColor: Color = this.disabledInactiveContainerColor,
    disabledInactiveContentColor: Color = this.disabledInactiveContentColor,
    disabledInactiveBorderColor: Color = this.disabledInactiveBorderColor
): SegmentedButtonColors
```

Returns a copy of this ChipColors, optionally overriding some of the ues. This uses the Color.Unspecified to mean "use the value from the source"

### equals

Cmn

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

### hashCode

Cmn

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

## Public properties

### activeBorderColor

Cmn

```
val activeBorderColor: Color
```

the color used for the border when enabled and active

### activeContainerColor

Cmn

```
val activeContainerColor: Color
```

the color used for the container when enabled and active

### activeContentColor

Cmn

```
val activeContentColor: Color
```

the color used for the content when enabled and active

### disabledActiveBorderColor

Cmn

```
val disabledActiveBorderColor: Color
```

the color used for the border when disabled and active

### disabledActiveContainerColor

Cmn

```
val disabledActiveContainerColor: Color
```

the color used for the container when disabled and active

### disabledActiveContentColor

Cmn

```
val disabledActiveContentColor: Color
```

the color used for the content when disabled and active

### disabledInactiveBorderColor

Cmn

```
val disabledInactiveBorderColor: Color
```

the color used for the border when disabled and inactive

### disabledInactiveContainerColor

Cmn

```
val disabledInactiveContainerColor: Color
```

the color used for the container when disabled and inactive

### disabledInactiveContentColor

Cmn

```
val disabledInactiveContentColor: Color
```

the color used for the content when disabled and inactive

### inactiveBorderColor

Cmn

```
val inactiveBorderColor: Color
```

the color used for the border when enabled and active

### inactiveContainerColor

Cmn

```
val inactiveContainerColor: Color
```

the color used for the container when enabled and inactive

### inactiveContentColor

Cmn

```
val inactiveContentColor: Color
```

the color used for the content when enabled and inactive