---
title: "InlineSliderColors"
description: "Represents the background and content colors used in [InlineSlider] in different states."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

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



```kotlin
public interface InlineSliderColors
```


Represents the background and content colors used in `InlineSlider` in different states.


## Functions

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


Represents the background color for this slider, depending on `enabled`.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the slider is enabled |



```kotlin
@Composable public fun barColor(enabled: Boolean, selected: Boolean): State<Color>
```


Represents the color of the progress bar in the middle of the slider, depending on the
`enabled` and `selected`.

#### Parameters

| | |
| --- | --- |
| enabled | Whether the slider is enabled |
| selected | Whether color is for selected part of the slider |



```kotlin
@Composable public fun spacerColor(enabled: Boolean): State<Color>
```


Represents the color of the spacer between buttons and a progress bar, depending on the
`enabled`

#### Parameters

| | |
| --- | --- |
| enabled | Whether the slider is enabled |




