Package-level declarations

NepaliDatePickerDefaults: colors, shapes, and configuration defaults shared across the picker composables, following the Material3 defaults pattern.

Day marking lives here too: NepaliDayDecorator and the NepaliDayInfo it is handed per cell, NepaliDayDecoration for what to draw, NepaliDayMarkerColors for a palette resolved from MaterialTheme.colorScheme, and NepaliEventDisplayStyle for which channels are drawn at all.

Types

Link copied to clipboard
class NepaliDatePickerColors(val containerColor: Color, val titleContentColor: Color, val headlineContentColor: Color, val weekdayContentColor: Color, val subheadContentColor: Color, val navigationContentColor: Color, val yearContentColor: Color, val disabledYearContentColor: Color, val currentYearContentColor: Color, val selectedYearContentColor: Color, val disabledSelectedYearContentColor: Color, val selectedYearContainerColor: Color, val disabledSelectedYearContainerColor: Color, val dayContentColor: Color, val disabledDayContentColor: Color, val selectedDayContentColor: Color, val disabledSelectedDayContentColor: Color, val selectedDayContainerColor: Color, val disabledSelectedDayContainerColor: Color, val todayContentColor: Color, val todayDateBorderColor: Color, val dayInSelectionRangeContainerColor: Color, val dayInSelectionRangeContentColor: Color, val dividerColor: Color, val dateTextFieldColors: TextFieldColors)

Represents the colors used by the date picker.

Link copied to clipboard
Link copied to clipboard
data class NepaliDayDecoration(val contentColor: Color = Color.Unspecified, val containerColor: Color = Color.Unspecified, val indicators: List<Color> = emptyList(), val contentDescription: String? = null)

What a NepaliDayDecorator adds to one day cell.

Link copied to clipboard

Decides how a day is drawn beyond what the theme already says, which is what puts holidays, festivals and an app's own events on the calendar.

Link copied to clipboard
data class NepaliDayInfo(val date: CustomCalendar, val displayedDate: CustomCalendar, val isToday: Boolean, val isSelected: Boolean, val isInRange: Boolean, val isEnabled: Boolean, val isAdjacentMonth: Boolean)

One day of a month grid as the picker is about to draw it.

Link copied to clipboard
class NepaliDayMarkerColors(val weeklyOffColor: Color, val publicHolidayColor: Color, val religiousColor: Color, val regionalColor: Color, val observanceColor: Color, val eventColor: Color, val personalColor: Color, val markedContainerColor: Color)

The colors a marked day is drawn in, one slot per kind of thing a day can carry.

Link copied to clipboard
class NepaliEventDisplayStyle(val colorWeeklyOff: Boolean = true, val colorEvents: Boolean = true, val tintContainer: Boolean = false, val indicateWeeklyOff: Boolean = false, val indicateKinds: Set<NepaliEventKind> = emptySet(), val describe: Boolean = true)

How much of a day's holiday status is drawn, one switch per channel.

Functions

Link copied to clipboard

Lays other's marks over this decorator's, which is how a day that is both a holiday and a working day with two meetings on it gets drawn.