colors

@Composable
fun colors(activeBackgroundColor: Color = MaterialTheme.colors.primary.copy(0.3f), inactiveBackgroundColor: Color = MaterialTheme.colors.onBackground.copy(0.3f), activeTextColor: Color = MaterialTheme.colors.onPrimary, inactiveTextColor: Color = MaterialTheme.colors.onBackground, inactivePeriodBackground: Color = Color.Transparent, borderColor: Color = MaterialTheme.colors.onBackground, selectorColor: Color = MaterialTheme.colors.primary, selectorTextColor: Color = MaterialTheme.colors.onPrimary): TimePickerColors

Initialises a TimePickerColors object which represents the different colors used by the timepicker composable

Parameters

activeBackgroundColor

background color of selected time unit or period (AM/PM)

inactiveBackgroundColor

background color of inactive items in the dialog including the clock face

activeTextColor

color of text on the activeBackgroundColor

inactiveTextColor

color of text on the inactiveBackgroundColor

inactivePeriodBackground

background color of the inactive period (AM/PM) selector

borderColor

border color of the period (AM/PM) selector

selectorColor

color of clock hand/selector

selectorTextColor

color of text on selectedColor