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

```kotlin
object SwitchDefaults
```

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

## Properties

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

```kotlin
val IconSize = 12.dp
```

Icon size to use for `thumbContent`

## Functions

```kotlin
@Composable fun colors() = MaterialTheme.colorScheme.defaultSwitchColors
```

Creates a [SwitchColors](/jetpack-compose/androidx.tv/tv-material/classes/SwitchColors) that represents the different colors used in a [Switch](/jetpack-compose/androidx.tv/tv-material/components/Switch) in different
states.

<h2 id="colors-checkedthumbcolor-checkedtrackcolor-checkedbordercolor-checkediconcolor-uncheckedthumbcolor-uncheckedtrackcolor-uncheckedbordercolor-uncheckediconcolor-disabledcheckedthumbcolor-disabledcheckedtrackcolor-disabledcheckedbordercolor-disabledcheckediconcolor-disableduncheckedthumbcolor-disableduncheckedtrackcolor-disableduncheckedbordercolor-disableduncheckediconcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        checkedThumbColor: Color = Color.Unspecified,
        checkedTrackColor: Color = Color.Unspecified,
        checkedBorderColor: Color = Color.Unspecified,
        checkedIconColor: Color = Color.Unspecified,
        uncheckedThumbColor: Color = Color.Unspecified,
        uncheckedTrackColor: Color = Color.Unspecified,
        uncheckedBorderColor: Color = Color.Unspecified,
        uncheckedIconColor: Color = Color.Unspecified,
        disabledCheckedThumbColor: Color = Color.Unspecified,
        disabledCheckedTrackColor: Color = Color.Unspecified,
        disabledCheckedBorderColor: Color = Color.Unspecified,
        disabledCheckedIconColor: Color = Color.Unspecified,
        disabledUncheckedThumbColor: Color = Color.Unspecified,
        disabledUncheckedTrackColor: Color = Color.Unspecified,
        disabledUncheckedBorderColor: Color = Color.Unspecified,
        disabledUncheckedIconColor: Color = Color.Unspecified,
    ): SwitchColors
```

Creates a [SwitchColors](/jetpack-compose/androidx.tv/tv-material/classes/SwitchColors) that represents the different colors used in a [Switch](/jetpack-compose/androidx.tv/tv-material/components/Switch) in different
states.

#### Parameters

| | |
| --- | --- |
| checkedThumbColor | the color used for the thumb when enabled and checked |
| checkedTrackColor | the color used for the track when enabled and checked |
| checkedBorderColor | the color used for the border when enabled and checked |
| checkedIconColor | the color used for the icon when enabled and checked |
| uncheckedThumbColor | the color used for the thumb when enabled and unchecked |
| uncheckedTrackColor | the color used for the track when enabled and unchecked |
| uncheckedBorderColor | the color used for the border when enabled and unchecked |
| uncheckedIconColor | the color used for the icon when enabled and unchecked |
| disabledCheckedThumbColor | the color used for the thumb when disabled and checked |
| disabledCheckedTrackColor | the color used for the track when disabled and checked |
| disabledCheckedBorderColor | the color used for the border when disabled and checked |
| disabledCheckedIconColor | the color used for the icon when disabled and checked |
| disabledUncheckedThumbColor | the color used for the thumb when disabled and unchecked |
| disabledUncheckedTrackColor | the color used for the track when disabled and unchecked |
| disabledUncheckedBorderColor | the color used for the border when disabled and unchecked |
| disabledUncheckedIconColor | the color used for the icon when disabled and unchecked |