SetTheme
fun EventSchemaBuilderScope.SetTheme(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, colorsScheme: SetThemeEventSchema.ColorsScheme)
Overrides the app's Material color schemes at runtime with colorsScheme, which carries a full light and a full dark scheme — every Material 3 role, from primary through the surface container and fixed-accent families. Both are applied at once, so the app keeps following the system's light/dark setting. Does not consume incomingData. Dispatches onSuccess (no data) always, after the schemes are applied.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
events
Child events chained after this one, wired to its trigger (onSuccess).
colorsScheme
Light and dark color schemes to install, built with colorsScheme and colorScheme.