Represents the colors used by a TimeInput in different states.

Summary

Public constructors

TimeInputColors(
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeTextFieldColors: TextFieldColors
)

create an instance with arbitrary colors.

Cmn

Public functions

TimeInputColors
copy(
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeTextFieldColors: TextFieldColors?
)

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

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

Public properties

Color

The container color of the time input.

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
TextFieldColors

The TextFieldColors used for the hour and minute text fields.

Cmn

Public constructors

TimeInputColors

TimeInputColors(
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeTextFieldColors: TextFieldColors
)

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

Parameters
containerColor: Color

the container color of the time input

periodSelectorBorderColor: Color

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

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

timeTextFieldColors: TextFieldColors

the TextFieldColors used for the hour and minute text fields

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    periodSelectorBorderColor: Color = this.periodSelectorBorderColor,
    periodSelectorSelectedContainerColor: Color = this.periodSelectorSelectedContainerColor,
    periodSelectorContainerColor: Color = this.periodSelectorContainerColor,
    periodSelectorSelectedContentColor: Color = this.periodSelectorSelectedContentColor,
    periodSelectorContentColor: Color = this.periodSelectorContentColor,
    timeTextFieldColors: TextFieldColors? = this.timeTextFieldColors
): TimeInputColors

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

Parameters
containerColor: Color = this.containerColor

the container color of the time input

periodSelectorBorderColor: Color = this.periodSelectorBorderColor

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

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

timeTextFieldColors: TextFieldColors? = this.timeTextFieldColors

the TextFieldColors used for the hour and minute text fields

Returns
TimeInputColors

a copy of this TimeInputColors

equals

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

hashCode

open fun hashCode(): Int

Public properties

containerColor

val containerColorColor

The container color of the time input.

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.

timeTextFieldColors

val timeTextFieldColorsTextFieldColors

The TextFieldColors used for the hour and minute text fields.