🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

TimePickerColors

Represents the colors used by a TimePicker in different states.

Source set: Common
public class TimePickerColors public constructor(
    /** The color of the clock dial. */
    public val clockDialColor: Color,
    /** The color of the clock dial selector. */
    public val selectorColor: Color,
    /** The container color of the time picker. */
    public val containerColor: Color,
    /** The color used for the border of the AM/PM toggle. */
    public val periodSelectorBorderColor: Color,
    /**
     * The color of the numbers of the clock dial when they are selected or overlapping with the
     * selector.
     */
    public val clockDialSelectedContentColor: Color,
    /** The color of the numbers of the clock dial when they are unselected. */
    public val clockDialContentColor: Color,
    /** The color used for the selected container of the AM/PM toggle. */
    public val periodSelectorSelectedContainerColor: Color,
    /** The color used for the container of the AM/PM toggle. */
    public val periodSelectorContainerColor: Color,
    /** The color used for the selected content of the AM/PM toggle. */
    public val periodSelectorSelectedContentColor: Color,
    /** The color used for the content of the AM/PM toggle. */
    public val periodSelectorContentColor: Color,
    /**
     * The color used for the selected container of the display buttons to switch between hour and
     * minutes.
     */
    public val timeSelectorSelectedContainerColor: Color,
    /**
     * The color used for the container of the display buttons to switch between hour and minutes.
     */
    public val timeSelectorContainerColor: Color,
    /**
     * The color used for the selected content of the display buttons to switch between hour and
     * minutes.
     */
    public val timeSelectorSelectedContentColor: Color,
    /** The color used for the content of the display buttons to switch between hour and minutes. */
    public val timeSelectorContentColor: Color,
)

Represents the colors used by a TimePicker in different states.

Parameters

clockDialColor the color of the clock dial
selectorColor the color of the clock dial selector
containerColor the container color of the time picker
periodSelectorBorderColor the color used for the border of the AM/PM toggle
clockDialSelectedContentColor the color of the numbers of the clock dial when they are selected or overlapping with the selector
clockDialContentColor the color of the numbers of the clock dial when they are unselected
periodSelectorSelectedContainerColor the color used for the selected container of the AM/PM toggle
periodSelectorContainerColor the color used for the container of the AM/PM toggle
periodSelectorSelectedContentColor color used for the selected content of the AM/PM toggle
periodSelectorContentColor color used for the content of the AM/PM toggle
timeSelectorSelectedContainerColor color used for the selected container of the display buttons to switch between hour and minutes
timeSelectorContainerColor color used for the container of the display buttons to switch between hour and minutes
timeSelectorSelectedContentColor color used for the selected content of the display buttons to switch between hour and minutes
timeSelectorContentColor color used for the content of the display buttons to switch between hour and minutes

Properties

clockDialUnselectedContentColor

Source set: Common
@Deprecated(
        message = "Use clockDialContentColor instead",
        replaceWith = ReplaceWith("clockDialContentColor"),
        level = DeprecationLevel.HIDDEN,
    )
    public val clockDialUnselectedContentColor: Color

periodSelectorUnselectedContainerColor

Source set: Common
@Deprecated(
        message = "Use periodSelectorContainerColor instead",
        replaceWith = ReplaceWith("periodSelectorContainerColor"),
        level = DeprecationLevel.HIDDEN,
    )
    public val periodSelectorUnselectedContainerColor: Color

periodSelectorUnselectedContentColor

Source set: Common
@Deprecated(
        message = "Use periodSelectorContentColor instead",
        replaceWith = ReplaceWith("periodSelectorContentColor"),
        level = DeprecationLevel.HIDDEN,
    )
    public val periodSelectorUnselectedContentColor: Color

timeSelectorUnselectedContainerColor

Source set: Common
@Deprecated(
        message = "Use timeSelectorContainerColor instead",
        replaceWith = ReplaceWith("timeSelectorContainerColor"),
        level = DeprecationLevel.HIDDEN,
    )
    public val timeSelectorUnselectedContainerColor: Color

timeSelectorUnselectedContentColor

Source set: Common
@Deprecated(
        message = "Use timeSelectorContentColor instead",
        replaceWith = ReplaceWith("timeSelectorContentColor"),
        level = DeprecationLevel.HIDDEN,
    )
    public val timeSelectorUnselectedContentColor: Color

Functions

copy

Source set: Common
public 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 the color of the clock dial
selectorColor the color of the clock dial selector
containerColor the container color of the time picker
periodSelectorBorderColor the color used for the border of the AM/PM toggle
clockDialSelectedContentColor the color of the numbers of the clock dial when they are selected or overlapping with the selector
clockDialContentColor the color of the numbers of the clock dial when they are unselected
periodSelectorSelectedContainerColor the color used for the selected container of the AM/PM toggle
periodSelectorContainerColor the color used for the container of the AM/PM toggle
periodSelectorSelectedContentColor color used for the selected content of the AM/PM toggle
periodSelectorContentColor color used for the content of the AM/PM toggle
timeSelectorSelectedContainerColor color used for the selected container of the display buttons to switch between hour and minutes
timeSelectorContainerColor color used for the container of the display buttons to switch between hour and minutes
timeSelectorSelectedContentColor color used for the selected content of the display buttons to switch between hour and minutes
timeSelectorContentColor color used for the content of the display buttons to switch between hour and minutes

Return

a copy of this TimePickerColors

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

Content updated: