# SliderColors

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Slider.kt+class:androidx.compose.material3.SliderColors) Common/AllAndroid/JVM
- Cmn

  ```
  class SliderColors
  ```

*** ** * ** ***

Represents the color used by a `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` in different states.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#SliderColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( thumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledThumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` create an instance with arbitrary colors. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#copy(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)( thumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, activeTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, inactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledThumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledActiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, disabledInactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` Returns a copy of this SelectableChipColors, optionally overriding some of the values. | Cmn |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#hashCode()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#activeTickColor()` colors to be used to draw tick marks on the active track, if `steps` is specified | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#activeTrackColor()` color of the track in the part that is "active", meaning that the thumb is ahead of it | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#disabledActiveTickColor()` colors to be used to draw tick marks on the active track when Slider is disabled and when `steps` are specified on it | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#disabledActiveTrackColor()` color of the track in the "active" part when the Slider is disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#disabledInactiveTickColor()` colors to be used to draw tick marks on the inactive part of the track when Slider is disabled and when `steps` are specified on it | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#disabledInactiveTrackColor()` color of the track in the "inactive" part when the Slider is disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#disabledThumbColor()` thumb colors when disabled | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#inactiveTickColor()` colors to be used to draw tick marks on the inactive track, if `steps` are specified on the Slider is specified | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#inactiveTrackColor()` color of the track in the part that is "inactive", meaning that the thumb is before it | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderColors#thumbColor()` thumb color when enabled | Cmn |

## Public constructors

### SliderColors

Cmn

```
SliderColors(
    thumbColor: Color,
    activeTrackColor: Color,
    activeTickColor: Color,
    inactiveTrackColor: Color,
    inactiveTickColor: Color,
    disabledThumbColor: Color,
    disabledActiveTrackColor: Color,
    disabledActiveTickColor: Color,
    disabledInactiveTrackColor: Color,
    disabledInactiveTickColor: Color
)
```

create an instance with arbitrary colors. See `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderDefaults#colors()` for the default implementation that follows Material specifications.

| Parameters |
|---|---|
| `thumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | thumb color when enabled |
| `activeTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | color of the track in the part that is "active", meaning that the thumb is ahead of it |
| `activeTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | colors to be used to draw tick marks on the active track, if `steps` is specified |
| `inactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | color of the track in the part that is "inactive", meaning that the thumb is before it |
| `inactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | colors to be used to draw tick marks on the inactive track, if `steps` are specified on the Slider is specified |
| `disabledThumbColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | thumb colors when disabled |
| `disabledActiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | color of the track in the "active" part when the Slider is disabled |
| `disabledActiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | colors to be used to draw tick marks on the active track when Slider is disabled and when `steps` are specified on it |
| `disabledInactiveTrackColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | color of the track in the "inactive" part when the Slider is disabled |
| `disabledInactiveTickColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | colors to be used to draw tick marks on the inactive part of the track when Slider is disabled and when `steps` are specified on it |

## Public functions

### copy

Cmn

```
fun copy(
    thumbColor: Color = this.thumbColor,
    activeTrackColor: Color = this.activeTrackColor,
    activeTickColor: Color = this.activeTickColor,
    inactiveTrackColor: Color = this.inactiveTrackColor,
    inactiveTickColor: Color = this.inactiveTickColor,
    disabledThumbColor: Color = this.disabledThumbColor,
    disabledActiveTrackColor: Color = this.disabledActiveTrackColor,
    disabledActiveTickColor: Color = this.disabledActiveTickColor,
    disabledInactiveTrackColor: Color = this.disabledInactiveTrackColor,
    disabledInactiveTickColor: Color = this.disabledInactiveTickColor
): SliderColors
```

Returns a copy of this SelectableChipColors, optionally overriding some of the values. This uses the Color.Unspecified to mean "use the value from the source"

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

## Public properties

### activeTickColor

Cmn

```
val activeTickColor: Color
```

colors to be used to draw tick marks on the active track, if `steps` is specified

### activeTrackColor

Cmn

```
val activeTrackColor: Color
```

color of the track in the part that is "active", meaning that the thumb is ahead of it

### disabledActiveTickColor

Cmn

```
val disabledActiveTickColor: Color
```

colors to be used to draw tick marks on the active track when Slider is disabled and when `steps` are specified on it

### disabledActiveTrackColor

Cmn

```
val disabledActiveTrackColor: Color
```

color of the track in the "active" part when the Slider is disabled

### disabledInactiveTickColor

Cmn

```
val disabledInactiveTickColor: Color
```

colors to be used to draw tick marks on the inactive part of the track when Slider is disabled and when `steps` are specified on it

### disabledInactiveTrackColor

Cmn

```
val disabledInactiveTrackColor: Color
```

color of the track in the "inactive" part when the Slider is disabled

### disabledThumbColor

Cmn

```
val disabledThumbColor: Color
```

thumb colors when disabled

### inactiveTickColor

Cmn

```
val inactiveTickColor: Color
```

colors to be used to draw tick marks on the inactive track, if `steps` are specified on the Slider is specified

### inactiveTrackColor

Cmn

```
val inactiveTrackColor: Color
```

color of the track in the part that is "inactive", meaning that the thumb is before it

### thumbColor

Cmn

```
val thumbColor: Color
```

thumb color when enabled