<div class='sourceset sourceset-android'>Android</div>

```kotlin
public object SwitchDefaults
```

Contains the default values used by [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch).

## Functions

<h2 id="colors-checkedthumbcolor-checkedtrackcolor-uncheckedthumbcolor-uncheckedtrackcolor">colors</h2>

```kotlin
@Composable
public fun colors(
    checkedThumbColor: Color = MaterialTheme.colors.secondary,
    checkedTrackColor: Color = checkedThumbColor.copy(alpha = ContentAlpha.disabled),
    uncheckedThumbColor: Color = MaterialTheme.colors.onSurface.copy(alpha = 0.6f),
    uncheckedTrackColor: Color =
        uncheckedThumbColor.copy(alpha = uncheckedThumbColor.alpha * ContentAlpha.disabled),
): SwitchColors
```

Creates a [SwitchColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/SwitchColors) for use in a [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch).

#### Parameters

| | |
| --- | --- |
| checkedThumbColor | The thumb color of this [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch) when enabled and checked. |
| checkedTrackColor | The track color of this [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch) when enabled and checked. |
| uncheckedThumbColor | The thumb color of this [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch) when enabled and unchecked. |
| uncheckedTrackColor | The track color of this [Switch](/jetpack-compose/androidx.wear.compose/compose-material/components/Switch) when enabled and unchecked. |