HolidayGreetingDialog

fun HolidayGreetingDialog(season: HolidaySeason, onAnswer: (useHolidayTheme: Boolean) -> Unit)(source)

Greets a holiday and offers its theme for the length of the holiday.

A floating card with the season's illustration as its whole background: the title and message over a scrim at the top, the illustration in the middle, and the two choices over a scrim at the bottom. Its colours are the season's own, whatever theme the app wears, so the art and the text over it look the same, and stay readable, in light and dark mode.

The filled button takes the holiday theme; the outlined one, back, and a tap outside the card keep the current theme, since nothing was confirmed.

Parameters

onAnswer

Called once with whether the holiday theme should be applied.