# SplitToggleChipColors

Artifact: [androidx.wear.compose:compose-material](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material/ToggleChip.kt+class:androidx.wear.compose.material.SplitToggleChipColors) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.0.0)


```
interface SplitToggleChipColors
```

<br />

*** ** * ** ***

Represents the background and content colors used in `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChip.composable#SplitToggleChip(kotlin.Boolean,kotlin.Function1,kotlin.Function1,kotlin.Function0,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Function1,androidx.wear.compose.material.SplitToggleChipColors,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.foundation.interaction.MutableInteractionSource,androidx.compose.foundation.layout.PaddingValues,androidx.compose.ui.graphics.Shape)`s in different states.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#backgroundColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the background color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#backgroundColor(kotlin.Boolean)`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#contentColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the content color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#contentColor(kotlin.Boolean)` |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#secondaryContentColor(kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the secondary content color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#secondaryContentColor(kotlin.Boolean)` |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#splitBackgroundOverlay(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, checked: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the overlay to apply to a split background SplitToggleChip to distinguish between the two tappable areas. |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/State<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#toggleControlColor(kotlin.Boolean,kotlin.Boolean)(enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, checked: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Represents the color for the toggle control content for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#toggleControlColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#toggleControlColor(kotlin.Boolean,kotlin.Boolean)` properties. |

## Public functions

### backgroundColor

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

```
@Composable
fun backgroundColor(enabled: Boolean): State<Color>
```

Represents the background color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#backgroundColor(kotlin.Boolean)`.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### contentColor

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

```
@Composable
fun contentColor(enabled: Boolean): State<Color>
```

Represents the content color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#contentColor(kotlin.Boolean)`

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### secondaryContentColor

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

```
@Composable
fun secondaryContentColor(enabled: Boolean): State<Color>
```

Represents the secondary content color for this chip, depending on whether it is `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#secondaryContentColor(kotlin.Boolean)`

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |

### splitBackgroundOverlay

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

```
@Composable
fun splitBackgroundOverlay(enabled: Boolean, checked: Boolean): State<Color>
```

Represents the overlay to apply to a split background SplitToggleChip to distinguish between the two tappable areas. The overlay will be applied to "lighten" the background of area under the toggle control, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#splitBackgroundOverlay(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#splitBackgroundOverlay(kotlin.Boolean,kotlin.Boolean)` properties.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |
| `checked: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is currently checked or unchecked |

### toggleControlColor

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

```
@Composable
fun toggleControlColor(enabled: Boolean, checked: Boolean): State<Color>
```

Represents the color for the toggle control content for this chip, depending on the `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#toggleControlColor(kotlin.Boolean,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/wear/compose/material/SplitToggleChipColors#toggleControlColor(kotlin.Boolean,kotlin.Boolean)` properties.

| Parameters |
|---|---|
| `enabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is enabled |
| `checked: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the chip is currently checked or unchecked |