ScheduleDefaults
object ScheduleDefaults
Defaults for DaySchedule and WeekSchedule.
Functions
Link copied to clipboard
fun AllDayEventChip(event: CalendarEvent<*>, colors: ScheduleColors, dimensions: ScheduleDimensions = dimensions(), modifier: Modifier = Modifier, onClick: () -> Unit? = null)
Default all-day chip shown above the time grid.
Link copied to clipboard
fun colors(gridLineColor: Color = MaterialTheme.colorScheme.outlineVariant.copy(alpha = 0.5f), halfHourLineColor: Color = MaterialTheme.colorScheme.outlineVariant.copy(alpha = 0.25f), hourLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, headerContentColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, todayHeaderColor: Color = MaterialTheme.colorScheme.primary, nowIndicatorColor: Color = MaterialTheme.colorScheme.primary, defaultEventContainerColor: Color = MaterialTheme.colorScheme.primaryContainer, defaultEventContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer, defaultEventAccentColor: Color = MaterialTheme.colorScheme.primary): ScheduleColors
Link copied to clipboard
fun DayHeader(date: LocalDate, isToday: Boolean, colors: ScheduleColors, modifier: Modifier = Modifier)
Default day column header: short weekday name above the day number.
Link copied to clipboard
Link copied to clipboard
fun EventTile(positioned: PositionedEvent<*>, colors: ScheduleColors, dimensions: ScheduleDimensions = dimensions(), modifier: Modifier = Modifier, onClick: () -> Unit? = null)
Default timed event tile: a leading accent stripe, the title, the time range clipped to the column's day, and an optional subtitle.
Link copied to clipboard
Default hour label in the time gutter, e.g. "08:00".
Link copied to clipboard
fun NowIndicator(colors: ScheduleColors, dimensions: ScheduleDimensions = dimensions(), modifier: Modifier = Modifier, contentDescription: String? = null)
Default current-time line: a dot at the start edge and a horizontal line.
Link copied to clipboard
fun strings(allDayLabel: String = orreryString(OrreryString.AgendaAllDay), nowLabel: String = orreryString(OrreryString.ScheduleNow)): ScheduleStrings
Builds ScheduleStrings. Defaults are resolved from the current locale's resources; override any parameter to replace a string.