TimePickerColors
-
Cmn
@ExperimentalMaterial3Api
class TimePickerColors
Represents the colors used by a TimePicker in different states
Summary
Public constructors |
|
|---|---|
TimePickerColors(create an instance with arbitrary colors. |
Cmn
|
Public functions |
||
|---|---|---|
TimePickerColors |
copy(Returns a copy of this TimePickerColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
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”
Public properties
clockDialSelectedContentColor
val clockDialSelectedContentColor: Color
the color of the numbers of the clock dial when they are selected or overlapping with the selector
clockDialUnselectedContentColor
val clockDialUnselectedContentColor: Color
the color of the numbers of the clock dial when they are unselected
periodSelectorBorderColor
val periodSelectorBorderColor: Color
the color used for the border of the AM/PM toggle.
periodSelectorSelectedContainerColor
val periodSelectorSelectedContainerColor: Color
the color used for the selected container of the AM/PM toggle
periodSelectorSelectedContentColor
val periodSelectorSelectedContentColor: Color
color used for the selected content of the AM/PM toggle
periodSelectorUnselectedContainerColor
val periodSelectorUnselectedContainerColor: Color
the color used for the unselected container of the AM/PM toggle
periodSelectorUnselectedContentColor
val periodSelectorUnselectedContentColor: Color
color used for the unselected content of the AM/PM toggle
timeSelectorSelectedContainerColor
val timeSelectorSelectedContainerColor: Color
color used for the selected container of the display buttons to switch between hour and minutes
timeSelectorSelectedContentColor
val timeSelectorSelectedContentColor: Color
color used for the selected content of the display buttons to switch between hour and minutes
timeSelectorUnselectedContainerColor
val timeSelectorUnselectedContainerColor: Color
color used for the unselected container of the display buttons to switch between hour and minutes
timeSelectorUnselectedContentColor
val timeSelectorUnselectedContentColor: Color
color used for the unselected content of the display buttons to switch between hour and minutes