Package-level declarations

Types

Link copied to clipboard
@Serializable
data class SerializableThemeConfig(val primary: String, val primaryVariant: String, val secondary: String, val secondaryVariant: String, val background: String, val surface: String, val error: String, val onPrimary: String, val onSecondary: String, val onBackground: String, val onSurface: String, val onError: String, val isLight: Boolean)

Serializable data class representing the theme configuration for the application.

Link copied to clipboard
data class ThemeConfig(val primary: Color, val primaryVariant: Color, val secondary: Color, val secondaryVariant: Color, val background: Color, val surface: Color, val error: Color, val onPrimary: Color, val onSecondary: Color, val onBackground: Color, val onSurface: Color, val onError: Color, val isLight: Boolean)

Data class representing the theme configuration for the application.

Functions

Link copied to clipboard
fun MaleficTheme(themeConfig: ThemeConfig, content: @Composable () -> Unit)

Applies the Malefic theme to the given content.

fun MaleficTheme(inputStream: InputStream, content: @Composable () -> Unit)

JVM-specific extension for loading a theme configuration from an InputStream and applying the Malefic theme. This function is provided for backward compatibility with JVM/Desktop applications.

Link copied to clipboard
fun MaleficThemeFromJson(jsonContent: String, content: @Composable () -> Unit)

Loads a theme configuration from a JSON string and applies the Malefic theme to the given content.

Link copied to clipboard
fun MaleficThemeFromResource(resourcePath: String, content: @Composable () -> Unit)

Loads a theme configuration from a platform-specific resource and applies the Malefic theme to the given content.