TimeInputDefaults


Default values used by TimeInput

Summary

Public functions

TimeInputColors

Default colors used by a TimeInput in different states

Cmn
TimeInputColors
@Composable
colors(
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeTextFieldColors: TextFieldColors?
)

Default colors used by a TimeInput in different states

Cmn
TimePickerShapes

Default shapes used by a TimeInput

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

Default shapes used by a TimeInput

Cmn
TimeInputColors

Default colors used by a vibrant TimeInput in different states

Cmn
TimeInputColors
@Composable
vibrantColors(
    containerColor: Color,
    periodSelectorBorderColor: Color,
    periodSelectorSelectedContainerColor: Color,
    periodSelectorContainerColor: Color,
    periodSelectorSelectedContentColor: Color,
    periodSelectorContentColor: Color,
    timeTextFieldColors: TextFieldColors?
)

Default colors used by a vibrant TimeInput in different states

Cmn

Public functions

colors

@Composable
fun colors(): TimeInputColors

Default colors used by a TimeInput in different states

colors

@Composable
fun colors(
    containerColor: Color = Color.Unspecified,
    periodSelectorBorderColor: Color = Color.Unspecified,
    periodSelectorSelectedContainerColor: Color = Color.Unspecified,
    periodSelectorContainerColor: Color = Color.Unspecified,
    periodSelectorSelectedContentColor: Color = Color.Unspecified,
    periodSelectorContentColor: Color = Color.Unspecified,
    timeTextFieldColors: TextFieldColors? = null
): TimeInputColors

Default colors used by a TimeInput in different states

Parameters
containerColor: Color = Color.Unspecified

the container color of the time input

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

timeTextFieldColors: TextFieldColors? = null

the TextFieldColors used for the hour and minute text fields

Returns
TimeInputColors

TimeInputColors with specified color overrides

shapes

@Composable
fun shapes(): TimePickerShapes

Default shapes used by a TimeInput

shapes

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

Default shapes used by a TimeInput

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(): TimeInputColors

Default colors used by a vibrant TimeInput in different states

vibrantColors

@Composable
fun vibrantColors(
    containerColor: Color = Color.Unspecified,
    periodSelectorBorderColor: Color = Color.Unspecified,
    periodSelectorSelectedContainerColor: Color = Color.Unspecified,
    periodSelectorContainerColor: Color = Color.Unspecified,
    periodSelectorSelectedContentColor: Color = Color.Unspecified,
    periodSelectorContentColor: Color = Color.Unspecified,
    timeTextFieldColors: TextFieldColors? = null
): TimeInputColors

Default colors used by a vibrant TimeInput in different states

Parameters
containerColor: Color = Color.Unspecified

the container color of the time input

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

timeTextFieldColors: TextFieldColors? = null

the TextFieldColors used for the hour and minute text fields

Returns
TimeInputColors

TimeInputColors with specified color overrides