DurationPickerColors

class DurationPickerColors


Represents the colors used by a DurationPicker.

Summary

Public constructors

DurationPickerColors(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: Color,
    invalidPickerContentColor: Color,
    separatorColor: Color,
    pickerLabelColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color,
    pickerBackgroundColor: Color
)

Public functions

DurationPickerColors
copy(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: Color,
    invalidPickerContentColor: Color,
    separatorColor: Color,
    pickerLabelColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color,
    pickerBackgroundColor: Color
)

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

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

Public properties

Color

The container color of the confirm button.

Color

The content color of the confirm button.

Color

The content color of invalid picker options.

Color

The background color of the picker, used for the top and bottom gradient fade on the picker columns.

Color

The color of the picker label.

Color

The content color of selected picker.

Color

The color of separator between the pickers.

Color

The content color of unselected pickers.

Public constructors

DurationPickerColors

Added in 1.8.0-alpha04
DurationPickerColors(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: Color,
    invalidPickerContentColor: Color,
    separatorColor: Color,
    pickerLabelColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color,
    pickerBackgroundColor: Color
)
Parameters
selectedPickerContentColor: Color

The content color of selected picker.

unselectedPickerContentColor: Color

The content color of unselected pickers.

invalidPickerContentColor: Color

The content color of invalid picker options.

separatorColor: Color

The color of separator between the pickers.

pickerLabelColor: Color

The color of the picker label.

confirmButtonContentColor: Color

The content color of the confirm button.

confirmButtonContainerColor: Color

The container color of the confirm button.

pickerBackgroundColor: Color

The background color of the picker, used for the top and bottom gradient fade on the picker columns. Color.Unspecified makes the fade transparent, so it works on any background, including gradients and images.

Public functions

copy

Added in 1.8.0-alpha04
fun copy(
    selectedPickerContentColor: Color = this.selectedPickerContentColor,
    unselectedPickerContentColor: Color = this.unselectedPickerContentColor,
    invalidPickerContentColor: Color = this.invalidPickerContentColor,
    separatorColor: Color = this.separatorColor,
    pickerLabelColor: Color = this.pickerLabelColor,
    confirmButtonContentColor: Color = this.confirmButtonContentColor,
    confirmButtonContainerColor: Color = this.confirmButtonContainerColor,
    pickerBackgroundColor: Color = this.pickerBackgroundColor
): DurationPickerColors

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

Parameters
selectedPickerContentColor: Color = this.selectedPickerContentColor

The content color of selected picker.

unselectedPickerContentColor: Color = this.unselectedPickerContentColor

The content color of unselected pickers.

invalidPickerContentColor: Color = this.invalidPickerContentColor

The content color of invalid picker options.

separatorColor: Color = this.separatorColor

The color of separator between the pickers.

pickerLabelColor: Color = this.pickerLabelColor

The color of the picker label.

confirmButtonContentColor: Color = this.confirmButtonContentColor

The content color of the confirm button.

confirmButtonContainerColor: Color = this.confirmButtonContainerColor

The container color of the confirm button.

pickerBackgroundColor: Color = this.pickerBackgroundColor

The background color of the picker, used for the top and bottom gradient fade on the picker columns.

equals

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

hashCode

open fun hashCode(): Int

Public properties

confirmButtonContainerColor

val confirmButtonContainerColor: Color

The container color of the confirm button.

confirmButtonContentColor

val confirmButtonContentColor: Color

The content color of the confirm button.

invalidPickerContentColor

val invalidPickerContentColor: Color

The content color of invalid picker options.

pickerBackgroundColor

val pickerBackgroundColor: Color

The background color of the picker, used for the top and bottom gradient fade on the picker columns. Color.Unspecified makes the fade transparent, so it works on any background, including gradients and images.

pickerLabelColor

val pickerLabelColor: Color

The color of the picker label.

selectedPickerContentColor

val selectedPickerContentColor: Color

The content color of selected picker.

separatorColor

val separatorColor: Color

The color of separator between the pickers.

unselectedPickerContentColor

val unselectedPickerContentColor: Color

The content color of unselected pickers.