TimePickerDefaults

object TimePickerDefaults


Contains the default values used by TimePicker

Summary

Public functions

TimePickerColors

Creates a TimePickerColors for a TimePicker.

TimePickerColors
@Composable
timePickerColors(
    selectedPickerContentColor: Color,
    unselectedPickerContentColor: Color,
    separatorColor: Color,
    pickerLabelColor: Color,
    confirmButtonContentColor: Color,
    confirmButtonContainerColor: Color
)

Creates a TimePickerColors for a TimePicker.

Public properties

TimePickerType

The default TimePickerType for TimePicker aligns with the current system time format.

Public functions

timePickerColors

Added in 1.0.0-alpha28
@Composable
fun timePickerColors(): TimePickerColors

Creates a TimePickerColors for a TimePicker.

timePickerColors

@Composable
fun timePickerColors(
    selectedPickerContentColor: Color = Color.Unspecified,
    unselectedPickerContentColor: Color = Color.Unspecified,
    separatorColor: Color = Color.Unspecified,
    pickerLabelColor: Color = Color.Unspecified,
    confirmButtonContentColor: Color = Color.Unspecified,
    confirmButtonContainerColor: Color = Color.Unspecified
): TimePickerColors

Creates a TimePickerColors for a TimePicker.

Parameters
selectedPickerContentColor: Color = Color.Unspecified

The content color of selected picker.

unselectedPickerContentColor: Color = Color.Unspecified

The content color of unselected pickers.

separatorColor: Color = Color.Unspecified

The color of separator between the pickers.

pickerLabelColor: Color = Color.Unspecified

The color of the picker label.

confirmButtonContentColor: Color = Color.Unspecified

The content color of the confirm button.

confirmButtonContainerColor: Color = Color.Unspecified

The container color of the confirm button.

Public properties

timePickerType

Added in 1.0.0-alpha28
val timePickerTypeTimePickerType

The default TimePickerType for TimePicker aligns with the current system time format.