Package-level declarations

Functions

Link copied to clipboard
fun colorScheme(primary: String, onPrimary: String, primaryContainer: String, onPrimaryContainer: String, inversePrimary: String, secondary: String, onSecondary: String, secondaryContainer: String, onSecondaryContainer: String, tertiary: String, onTertiary: String, tertiaryContainer: String, onTertiaryContainer: String, background: String, onBackground: String, surface: String, onSurface: String, surfaceVariant: String, onSurfaceVariant: String, surfaceTint: String, inverseSurface: String, inverseOnSurface: String, error: String, onError: String, errorContainer: String, onErrorContainer: String, outline: String, outlineVariant: String, scrim: String, surfaceBright: String, surfaceDim: String, surfaceContainer: String, surfaceContainerHigh: String, surfaceContainerHighest: String, surfaceContainerLow: String, surfaceContainerLowest: String, primaryFixed: String, primaryFixedDim: String, onPrimaryFixed: String, onPrimaryFixedVariant: String, secondaryFixed: String, secondaryFixedDim: String, onSecondaryFixed: String, onSecondaryFixedVariant: String, tertiaryFixed: String, tertiaryFixedDim: String, onTertiaryFixed: String, onTertiaryFixedVariant: String): SetThemeEventSchema.ColorScheme

One full Material 3 color scheme — every role from primary through the surface container and fixed-accent families — as hex color strings, for use as the light or dark half of a colorsScheme.

Link copied to clipboard

Pairs a lightColorScheme and darkColorScheme for a SetTheme event — both are applied at once, so the app keeps following the system's light/dark setting.

Link copied to clipboard
fun EventSchemaBuilderScope.ResetTheme(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {})

Drops any color scheme previously installed by SetTheme, putting the app back on the color scheme it was built with. Does not consume incomingData. Dispatches onSuccess (no data) always, after the reset.

Link copied to clipboard
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.