ScrollFieldColors


Represents the colors used by a ScrollField in different states.

Summary

Public constructors

ScrollFieldColors(
    containerColor: Color,
    contentColor: Color,
    selectedContentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    disabledSelectedContentColor: Color
)
Cmn

Public functions

ScrollFieldColors
copy(
    containerColor: Color,
    contentColor: Color,
    selectedContentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    disabledSelectedContentColor: Color
)

Returns a copy of this ScrollFieldColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

The color of the ScrollField container, when enabled.

Cmn
Color

The color of the numerical value(s) visible on the screen that are not chosen, when enabled.

Cmn
Color

The color of the ScrollField container, when disabled.

Cmn
Color

The color of the numerical value(s) visible on the screen that are not chosen, when disabled.

Cmn
Color

The color of the numerical value that is centered and snapped into place, when disabled.

Cmn
Color

The color of the numerical value that is centered and snapped into place, when enabled.

Cmn

Public constructors

ScrollFieldColors

ScrollFieldColors(
    containerColor: Color,
    contentColor: Color,
    selectedContentColor: Color,
    disabledContainerColor: Color,
    disabledContentColor: Color,
    disabledSelectedContentColor: Color
)
Parameters
containerColor: Color

The color of the ScrollField container, when enabled.

contentColor: Color

The color of the numerical value(s) visible on the screen that are not chosen, when enabled.

selectedContentColor: Color

The color of the numerical value that is centered and snapped into place, when enabled.

disabledContainerColor: Color

The color of the ScrollField container, when disabled.

disabledContentColor: Color

The color of the numerical value(s) visible on the screen that are not chosen, when disabled.

disabledSelectedContentColor: Color

The color of the numerical value that is centered and snapped into place, when disabled.

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    contentColor: Color = this.contentColor,
    selectedContentColor: Color = this.selectedContentColor,
    disabledContainerColor: Color = this.disabledContainerColor,
    disabledContentColor: Color = this.disabledContentColor,
    disabledSelectedContentColor: Color = this.disabledSelectedContentColor
): ScrollFieldColors

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

equals

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

hashCode

open fun hashCode(): Int

Public properties

containerColor

val containerColorColor

The color of the ScrollField container, when enabled.

contentColor

val contentColorColor

The color of the numerical value(s) visible on the screen that are not chosen, when enabled.

disabledContainerColor

val disabledContainerColorColor

The color of the ScrollField container, when disabled.

disabledContentColor

val disabledContentColorColor

The color of the numerical value(s) visible on the screen that are not chosen, when disabled.

disabledSelectedContentColor

val disabledSelectedContentColorColor

The color of the numerical value that is centered and snapped into place, when disabled.

selectedContentColor

val selectedContentColorColor

The color of the numerical value that is centered and snapped into place, when enabled.