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

```kotlin
public object InlineSliderDefaults
```

Defaults used by slider

## Functions

<h2 id="colors-backgroundcolor-spacercolor-selectedbarcolor-unselectedbarcolor-disabledbackgroundcolor-disabledspacercolor-disabledselectedbarcolor-disabledunselectedbarcolor">colors</h2>

```kotlin
@Composable
public fun colors(
    backgroundColor: Color = MaterialTheme.colors.surface,
    spacerColor: Color = MaterialTheme.colors.background,
    selectedBarColor: Color = MaterialTheme.colors.secondary,
    unselectedBarColor: Color = MaterialTheme.colors.onSurface.copy(0.1f),
    disabledBackgroundColor: Color = backgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledSpacerColor: Color = spacerColor.copy(alpha = ContentAlpha.disabled),
    disabledSelectedBarColor: Color = selectedBarColor.copy(alpha = ContentAlpha.disabled),
    disabledUnselectedBarColor: Color = unselectedBarColor.copy(alpha = 0.05f),
): InlineSliderColors
```

Creates a [InlineSliderColors](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/InlineSliderColors) that represents the default background and content colors used
in an [InlineSlider](/jetpack-compose/androidx.wear.compose/compose-material/components/InlineSlider).

#### Parameters

| | |
| --- | --- |
| backgroundColor | The background color of this [InlineSlider](/jetpack-compose/androidx.wear.compose/compose-material/components/InlineSlider) when enabled |
| spacerColor | The color of the spacer between buttons and a progress bar when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| disabledBackgroundColor | The background color of this [InlineSlider](/jetpack-compose/androidx.wear.compose/compose-material/components/InlineSlider) when disabled |
| disabledSpacerColor | The color of the spacer between buttons and a progress bar when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |