Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

State object that holds the current values for a dynamic material theme.

Link copied to clipboard

The style of the palette to generate.

Properties

Link copied to clipboard

LocalDynamicMaterialThemeSeed is a CompositionLocal that provides the seed color for the dynamic material theme.

Functions

Link copied to clipboard
fun AnimatedDynamicMaterialTheme(seedColor: Color, useDarkTheme: Boolean = isSystemInDarkTheme(), withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, isExtendedFidelity: Boolean = false, content: @Composable () -> Unit)

A Material Theme that adapts to the given seed color and animates the color scheme.

Link copied to clipboard
fun dynamicColorScheme(seedColor: Color, isDark: Boolean, isAmoled: Boolean, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, isExtendedFidelity: Boolean = false, modifyColorScheme: (ColorScheme) -> ColorScheme? = null): ColorScheme

Creates a ColorScheme based on the given seedColor and isDark mode.

Link copied to clipboard
fun DynamicMaterialTheme(state: DynamicMaterialThemeState, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, animate: Boolean = false, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), content: @Composable () -> Unit)

A Material Theme that adapts to the given DynamicMaterialThemeState.seedColor.

fun DynamicMaterialTheme(seedColor: Color, useDarkTheme: Boolean = isSystemInDarkTheme(), withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, shapes: Shapes = MaterialTheme.shapes, typography: Typography = MaterialTheme.typography, isExtendedFidelity: Boolean = false, animate: Boolean = false, animationSpec: AnimationSpec<Color> = spring(stiffness = Spring.StiffnessLow), content: @Composable () -> Unit)

A Material Theme that adapts to the given seed color.

Link copied to clipboard
fun rememberDynamicColorScheme(seedColor: Color, isDark: Boolean, isAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, isExtendedFidelity: Boolean = false, modifyColorScheme: (ColorScheme) -> ColorScheme? = null): ColorScheme

Creates and remember a ColorScheme based on the given seedColor and isDark mode.

Link copied to clipboard
fun rememberDynamicMaterialThemeState(seedColor: Color, isDark: Boolean, isAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrastLevel: Double = Contrast.Default.value, extendedFidelity: Boolean = false, modifyColorScheme: DynamicMaterialThemeState.(ColorScheme) -> ColorScheme? = null): DynamicMaterialThemeState

Creates a DynamicMaterialThemeState that can be remembered across compositions.