NepaliEventDisplayStyle

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)(source)

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

The defaults say a closed day is a colored number and nothing else. That leaves the dots to mean one thing only, events, so a Saturday carrying a wedding reads as a red number with one dot rather than as two competing marks. Turn the switches on when a product wants more: a public-holiday dot, a tinted disc, or a grid where the weekly rule is not drawn at all.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

whether a named holiday takes the color of its NepaliEventKind.

Link copied to clipboard

whether a weekly off day takes NepaliDayMarkerColors.weeklyOffColor.

Link copied to clipboard

whether the day's holiday names are appended to what a screen reader announces for the cell, which is what keeps the marking from being carried by color alone.

Link copied to clipboard

which kinds of named holiday draw a dot. Empty by default, so holidays are told apart from events by color rather than by competing for the same three dot slots.

Link copied to clipboard

whether a weekly off day draws a dot. Off by default: it would repeat fifty-two times a year and say nothing the color has not already said.

Link copied to clipboard

whether a day with any status also takes a tinted disc behind the number, from NepaliDayMarkerColors.markedContainerColor.

Functions

Link copied to clipboard
fun copy(colorWeeklyOff: Boolean = this.colorWeeklyOff, colorEvents: Boolean = this.colorEvents, tintContainer: Boolean = this.tintContainer, indicateWeeklyOff: Boolean = this.indicateWeeklyOff, indicateKinds: Set<NepaliEventKind> = this.indicateKinds, describe: Boolean = this.describe): NepaliEventDisplayStyle

A copy with some switches changed; the rest keep the values they already have.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int