TimePickerColors


Represents the colors used by a TimePicker in different states

Summary

Public constructors

TimePickerColors(
    clockDialColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialUnselectedContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorUnselectedContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorUnselectedContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorUnselectedContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorUnselectedContentColor: Color
)

create an instance with arbitrary colors.

Cmn

Public functions

TimePickerColors
copy(
    clockDialColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialUnselectedContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorUnselectedContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorUnselectedContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorUnselectedContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorUnselectedContentColor: Color
)

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

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

Public properties

Color

The color of the clock dial.

Cmn
Color

the color of the numbers of the clock dial when they are selected or overlapping with the selector

Cmn
Color

the color of the numbers of the clock dial when they are unselected

Cmn
Color

The container color of the time picker.

Cmn
Color

the color used for the border of the AM/PM toggle.

Cmn
Color

the color used for the selected container of the AM/PM toggle

Cmn
Color

color used for the selected content of the AM/PM toggle

Cmn
Color

the color used for the unselected container of the AM/PM toggle

Cmn
Color

color used for the unselected content of the AM/PM toggle

Cmn
Color

The color of the clock dial selector.

Cmn
Color

color used for the selected container of the display buttons to switch between hour and minutes

Cmn
Color

color used for the selected content of the display buttons to switch between hour and minutes

Cmn
Color

color used for the unselected container of the display buttons to switch between hour and minutes

Cmn
Color

color used for the unselected content of the display buttons to switch between hour and minutes

Cmn

Public constructors

TimePickerColors

TimePickerColors(
    clockDialColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialUnselectedContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorUnselectedContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorUnselectedContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorUnselectedContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorUnselectedContentColor: Color
)

create an instance with arbitrary colors. See TimePickerDefaults.colors for the default implementation that follows Material specifications.

Parameters
clockDialColor: Color

The color of the clock dial.

selectorColor: Color

The color of the clock dial selector.

containerColor: Color

The container color of the time picker.

periodSelectorBorderColor: Color

the color used for the border of the AM/PM toggle.

clockDialSelectedContentColor: Color

the color of the numbers of the clock dial when they are selected or overlapping with the selector

clockDialUnselectedContentColor: Color

the color of the numbers of the clock dial when they are unselected

periodSelectorSelectedContainerColor: Color

the color used for the selected container of the AM/PM toggle

periodSelectorUnselectedContainerColor: Color

the color used for the unselected container of the AM/PM toggle

periodSelectorSelectedContentColor: Color

color used for the selected content of the AM/PM toggle

periodSelectorUnselectedContentColor: Color

color used for the unselected content of the AM/PM toggle

timeSelectorSelectedContainerColor: Color

color used for the selected container of the display buttons to switch between hour and minutes

timeSelectorUnselectedContainerColor: Color

color used for the unselected container of the display buttons to switch between hour and minutes

timeSelectorSelectedContentColor: Color

color used for the selected content of the display buttons to switch between hour and minutes

timeSelectorUnselectedContentColor: Color

color used for the unselected content of the display buttons to switch between hour and minutes

Public functions

copy

fun copy(
    clockDialColor: Color = this.containerColor,
    selectorColor: Color = this.selectorColor,
    containerColor: Color = this.containerColor,
    periodSelectorBorderColor: Color = this.periodSelectorBorderColor,
    clockDialSelectedContentColor: Color = this.clockDialSelectedContentColor,
    clockDialUnselectedContentColor: Color = this.clockDialUnselectedContentColor,
    periodSelectorSelectedContainerColor: Color = this.periodSelectorSelectedContainerColor,
    periodSelectorUnselectedContainerColor: Color = this.periodSelectorUnselectedContainerColor,
    periodSelectorSelectedContentColor: Color = this.periodSelectorSelectedContentColor,
    periodSelectorUnselectedContentColor: Color = this.periodSelectorUnselectedContentColor,
    timeSelectorSelectedContainerColor: Color = this.timeSelectorSelectedContainerColor,
    timeSelectorUnselectedContainerColor: Color = this.timeSelectorUnselectedContainerColor,
    timeSelectorSelectedContentColor: Color = this.timeSelectorSelectedContentColor,
    timeSelectorUnselectedContentColor: Color = this.timeSelectorUnselectedContentColor
): TimePickerColors

Returns a copy of this TimePickerColors, 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

clockDialColor

val clockDialColorColor

The color of the clock dial.

clockDialSelectedContentColor

val clockDialSelectedContentColorColor

the color of the numbers of the clock dial when they are selected or overlapping with the selector

clockDialUnselectedContentColor

val clockDialUnselectedContentColorColor

the color of the numbers of the clock dial when they are unselected

containerColor

val containerColorColor

The container color of the time picker.

periodSelectorBorderColor

val periodSelectorBorderColorColor

the color used for the border of the AM/PM toggle.

periodSelectorSelectedContainerColor

val periodSelectorSelectedContainerColorColor

the color used for the selected container of the AM/PM toggle

periodSelectorSelectedContentColor

val periodSelectorSelectedContentColorColor

color used for the selected content of the AM/PM toggle

periodSelectorUnselectedContainerColor

val periodSelectorUnselectedContainerColorColor

the color used for the unselected container of the AM/PM toggle

periodSelectorUnselectedContentColor

val periodSelectorUnselectedContentColorColor

color used for the unselected content of the AM/PM toggle

selectorColor

val selectorColorColor

The color of the clock dial selector.

timeSelectorSelectedContainerColor

val timeSelectorSelectedContainerColorColor

color used for the selected container of the display buttons to switch between hour and minutes

timeSelectorSelectedContentColor

val timeSelectorSelectedContentColorColor

color used for the selected content of the display buttons to switch between hour and minutes

timeSelectorUnselectedContainerColor

val timeSelectorUnselectedContainerColorColor

color used for the unselected container of the display buttons to switch between hour and minutes

timeSelectorUnselectedContentColor

val timeSelectorUnselectedContentColorColor

color used for the unselected content of the display buttons to switch between hour and minutes