TimePickerDefaults


Contains the default values used by TimePicker

Summary

Public functions

TimePickerColors

Default colors used by a TimePicker in different states

Cmn
TimePickerColors
@Composable
colors(
    clockDialColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialUnselectedContentColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorUnselectedContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorUnselectedContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorUnselectedContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorUnselectedContentColor: Color
)

Default colors used by a TimePicker in different states

Cmn
TimePickerLayoutType

Default layout type, uses the screen dimensions to choose an appropriate layout.

Cmn

Public functions

colors

@Composable
fun colors(): TimePickerColors

Default colors used by a TimePicker in different states

colors

@Composable
fun colors(
    clockDialColor: Color = Color.Unspecified,
    clockDialSelectedContentColor: Color = Color.Unspecified,
    clockDialUnselectedContentColor: Color = Color.Unspecified,
    selectorColor: Color = Color.Unspecified,
    containerColor: Color = Color.Unspecified,
    periodSelectorBorderColor: Color = Color.Unspecified,
    periodSelectorSelectedContainerColor: Color = Color.Unspecified,
    periodSelectorUnselectedContainerColor: Color = Color.Unspecified,
    periodSelectorSelectedContentColor: Color = Color.Unspecified,
    periodSelectorUnselectedContentColor: Color = Color.Unspecified,
    timeSelectorSelectedContainerColor: Color = Color.Unspecified,
    timeSelectorUnselectedContainerColor: Color = Color.Unspecified,
    timeSelectorSelectedContentColor: Color = Color.Unspecified,
    timeSelectorUnselectedContentColor: Color = Color.Unspecified
): TimePickerColors

Default colors used by a TimePicker in different states

Parameters
clockDialColor: Color = Color.Unspecified

The color of the clock dial.

clockDialSelectedContentColor: Color = Color.Unspecified

the color of the numbers of the clock dial when they are selected or overlapping with the selector

clockDialUnselectedContentColor: Color = Color.Unspecified

the color of the numbers of the clock dial when they are unselected

selectorColor: Color = Color.Unspecified

The color of the clock dial selector.

containerColor: Color = Color.Unspecified

The container color of the time picker.

periodSelectorBorderColor: Color = Color.Unspecified

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

periodSelectorSelectedContainerColor: Color = Color.Unspecified

the color used for the selected container of the AM/PM toggle

periodSelectorUnselectedContainerColor: Color = Color.Unspecified

the color used for the unselected container of the AM/PM toggle

periodSelectorSelectedContentColor: Color = Color.Unspecified

color used for the selected content of the AM/PM toggle

periodSelectorUnselectedContentColor: Color = Color.Unspecified

color used for the unselected content of the AM/PM toggle

timeSelectorSelectedContainerColor: Color = Color.Unspecified

color used for the selected container of the display buttons to switch between hour and minutes

timeSelectorUnselectedContainerColor: Color = Color.Unspecified

color used for the unselected container of the display buttons to switch between hour and minutes

timeSelectorSelectedContentColor: Color = Color.Unspecified

color used for the selected content of the display buttons to switch between hour and minutes

timeSelectorUnselectedContentColor: Color = Color.Unspecified

color used for the unselected content of the display buttons to switch between hour and minutes

layoutType

@Composable
fun layoutType(): TimePickerLayoutType

Default layout type, uses the screen dimensions to choose an appropriate layout.