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,
    clockDialContentColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorContentColor: 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
TimePickerShapes

Default shapes used by a TimePicker

Cmn
TimePickerShapes
@Composable
shapes(timeFieldShape: Shape?, periodSelectorShape: Shape?)

Default shapes used by a TimePicker

Cmn
TimePickerColors

Default colors used by a vibrant TimePicker in different states

Cmn
TimePickerColors
@Composable
vibrantColors(
    clockDialColor: Color,
    clockDialSelectedContentColor: Color,
    clockDialContentColor: Color,
    selectorColor: Color,
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeSelectorSelectedContainerColor: Color,
    timeSelectorContainerColor: Color,
    timeSelectorSelectedContentColor: Color,
    timeSelectorContentColor: Color
)

Default colors used by a vibrant TimePicker in different states

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,
    clockDialContentColor: Color = Color.Unspecified,
    selectorColor: Color = Color.Unspecified,
    containerColor: Color = Color.Unspecified,
    periodSelectorBorderColor: Color = Color.Unspecified,
    periodSelectorSelectedContainerColor: Color = Color.Unspecified,
    periodSelectorContainerColor: Color = Color.Unspecified,
    periodSelectorSelectedContentColor: Color = Color.Unspecified,
    periodSelectorContentColor: Color = Color.Unspecified,
    timeSelectorSelectedContainerColor: Color = Color.Unspecified,
    timeSelectorContainerColor: Color = Color.Unspecified,
    timeSelectorSelectedContentColor: Color = Color.Unspecified,
    timeSelectorContentColor: 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

clockDialContentColor: 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

periodSelectorContainerColor: Color = Color.Unspecified

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

periodSelectorSelectedContentColor: Color = Color.Unspecified

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

periodSelectorContentColor: Color = Color.Unspecified

color used for the 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

timeSelectorContainerColor: Color = Color.Unspecified

color used for the 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

timeSelectorContentColor: Color = Color.Unspecified

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

Returns
TimePickerColors

TimePickerColors with specified color overrides

layoutType

@Composable
fun layoutType(): TimePickerLayoutType

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

shapes

@Composable
fun shapes(): TimePickerShapes

Default shapes used by a TimePicker

shapes

@Composable
fun shapes(timeFieldShape: Shape? = null, periodSelectorShape: Shape? = null): TimePickerShapes

Default shapes used by a TimePicker

Parameters
timeFieldShape: Shape? = null

the shape used for the time fields. If null, the default shape will be used.

periodSelectorShape: Shape? = null

the shape used for the AM/PM toggle. If null, the default shape will be used.

Returns
TimePickerShapes

TimePickerShapes with specified shape overrides

vibrantColors

@Composable
fun vibrantColors(): TimePickerColors

Default colors used by a vibrant TimePicker in different states

vibrantColors

@Composable
fun vibrantColors(
    clockDialColor: Color = Color.Unspecified,
    clockDialSelectedContentColor: Color = Color.Unspecified,
    clockDialContentColor: Color = Color.Unspecified,
    selectorColor: Color = Color.Unspecified,
    containerColor: Color = Color.Unspecified,
    periodSelectorBorderColor: Color = Color.Unspecified,
    periodSelectorSelectedContainerColor: Color = Color.Unspecified,
    periodSelectorContainerColor: Color = Color.Unspecified,
    periodSelectorSelectedContentColor: Color = Color.Unspecified,
    periodSelectorContentColor: Color = Color.Unspecified,
    timeSelectorSelectedContainerColor: Color = Color.Unspecified,
    timeSelectorContainerColor: Color = Color.Unspecified,
    timeSelectorSelectedContentColor: Color = Color.Unspecified,
    timeSelectorContentColor: Color = Color.Unspecified
): TimePickerColors

Default colors used by a vibrant 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

clockDialContentColor: 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

periodSelectorContainerColor: Color = Color.Unspecified

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

periodSelectorSelectedContentColor: Color = Color.Unspecified

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

periodSelectorContentColor: Color = Color.Unspecified

color used for the 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

timeSelectorContainerColor: Color = Color.Unspecified

color used for the 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

timeSelectorContentColor: Color = Color.Unspecified

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

Returns
TimePickerColors

TimePickerColors with specified color overrides