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,
    clockDialContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorContentColor: Color
)

create an instance with arbitrary colors.

Cmn

Public functions

TimePickerColors
copy(
    clockDialColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorContentColor: 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 unselected.

Cmn
Color

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

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 container of the AM/PM toggle.

Cmn
Color

The color used for the content of the AM/PM toggle.

Cmn
Color

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

Cmn
Color

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

Cmn
Color

The color of the clock dial selector.

Cmn
Color

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

Cmn
Color

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

Cmn
Color

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

Cmn
Color

The color used for the selected 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,
    clockDialContentColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorContentColor: 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

clockDialContentColor: 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

periodSelectorContainerColor: Color

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

periodSelectorSelectedContentColor: Color

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

periodSelectorContentColor: Color

color used for the content of the AM/PM toggle

timeSelectorSelectedContainerColor: Color

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

timeSelectorContainerColor: Color

color used for the 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

timeSelectorContentColor: Color

color used for the 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,
    clockDialContentColor: Color = this.clockDialContentColor,
    periodSelectorSelectedContainerColor: Color = this.periodSelectorSelectedContainerColor,
    periodSelectorContainerColor: Color = this.periodSelectorContainerColor,
    periodSelectorSelectedContentColor: Color = this.periodSelectorSelectedContentColor,
    periodSelectorContentColor: Color = this.periodSelectorContentColor,
    timeSelectorSelectedContainerColor: Color = this.timeSelectorSelectedContainerColor,
    timeSelectorContainerColor: Color = this.timeSelectorContainerColor,
    timeSelectorSelectedContentColor: Color = this.timeSelectorSelectedContentColor,
    timeSelectorContentColor: Color = this.timeSelectorContentColor
): TimePickerColors

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

Parameters
clockDialColor: Color = this.containerColor

the color of the clock dial

selectorColor: Color = this.selectorColor

the color of the clock dial selector

containerColor: Color = this.containerColor

the container color of the time picker

periodSelectorBorderColor: Color = this.periodSelectorBorderColor

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

clockDialSelectedContentColor: Color = this.clockDialSelectedContentColor

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

clockDialContentColor: Color = this.clockDialContentColor

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

periodSelectorSelectedContainerColor: Color = this.periodSelectorSelectedContainerColor

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

periodSelectorContainerColor: Color = this.periodSelectorContainerColor

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

periodSelectorSelectedContentColor: Color = this.periodSelectorSelectedContentColor

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

periodSelectorContentColor: Color = this.periodSelectorContentColor

color used for the content of the AM/PM toggle

timeSelectorSelectedContainerColor: Color = this.timeSelectorSelectedContainerColor

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

timeSelectorContainerColor: Color = this.timeSelectorContainerColor

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

timeSelectorSelectedContentColor: Color = this.timeSelectorSelectedContentColor

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

timeSelectorContentColor: Color = this.timeSelectorContentColor

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

Returns
TimePickerColors

a copy of this TimePickerColors

equals

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

hashCode

open fun hashCode(): Int

Public properties

clockDialColor

val clockDialColorColor

The color of the clock dial.

clockDialContentColor

val clockDialContentColorColor

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

clockDialSelectedContentColor

val clockDialSelectedContentColorColor

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

containerColor

val containerColorColor

The container color of the time picker.

periodSelectorBorderColor

val periodSelectorBorderColorColor

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

periodSelectorContainerColor

val periodSelectorContainerColorColor

The color used for the container of the AM/PM toggle.

periodSelectorContentColor

val periodSelectorContentColorColor

The color used for the content of the AM/PM toggle.

periodSelectorSelectedContainerColor

val periodSelectorSelectedContainerColorColor

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

periodSelectorSelectedContentColor

val periodSelectorSelectedContentColorColor

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

selectorColor

val selectorColorColor

The color of the clock dial selector.

timeSelectorContainerColor

val timeSelectorContainerColorColor

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

timeSelectorContentColor

val timeSelectorContentColorColor

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

timeSelectorSelectedContainerColor

val timeSelectorSelectedContainerColorColor

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

timeSelectorSelectedContentColor

val timeSelectorSelectedContentColorColor

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