dayDecorator
fun dayDecorator(markers: Map<SimpleDate, List<Color>>, contentColors: Map<SimpleDate, Color> = emptyMap(), descriptions: Map<SimpleDate, String> = emptyMap()): NepaliDayDecorator(source)
A NepaliDayDecorator built from plain maps, for an app that already holds its events by date.
A date in markers is drawn with one dot per color listed for it, a date in contentColors has its day number recolored, and a date in descriptions has that text announced after its own. A date in none of the three is left alone.
dayDecorator = NepaliDatePickerDefaults.dayDecorator(
markers = mapOf(SimpleDate(2082, 6, 3) to listOf(MaterialTheme.colorScheme.primary))
)Content copied to clipboard