PaletteonTheme

data class PaletteonTheme(val seedColor: Color = Color.Blue, val useDarkTheme: Boolean = false, val withAmoled: Boolean = false, val style: PaletteStyle = PaletteStyle.TonalSpot, val contrast: Contrast = Contrast.Default, val isExtendedFidelity: Boolean = false, val modifyColorScheme: PaletteonTheme.(ColorScheme) -> ColorScheme? = null)

Data class representing the theme configuration for Paletteon.

Constructors

Link copied to clipboard
constructor(seedColor: Color = Color.Blue, useDarkTheme: Boolean = false, withAmoled: Boolean = false, style: PaletteStyle = PaletteStyle.TonalSpot, contrast: Contrast = Contrast.Default, isExtendedFidelity: Boolean = false, modifyColorScheme: PaletteonTheme.(ColorScheme) -> ColorScheme? = null)

Types

Link copied to clipboard
data class Builder(var seedColor: Color, var useDarkTheme: Boolean, var withAmoled: Boolean, var style: PaletteStyle, var contrast: Contrast, var isExtendedFidelity: Boolean, var modifyColorScheme: PaletteonTheme.(ColorScheme) -> ColorScheme? = null)

Data class representing a builder for configuring a PaletteonTheme.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Computes the color scheme based on the current theme settings.

Link copied to clipboard

The contrast setting for the theme. Defaults to Contrast.Default.

Link copied to clipboard

Indicates whether extended fidelity is enabled. Defaults to false.

Link copied to clipboard
Link copied to clipboard

The primary color used for the theme. Defaults to Color.Blue.

Link copied to clipboard

The style to be applied to the theme. Defaults to PaletteStyle.TonalSpot.

Link copied to clipboard
val useDarkTheme: Boolean = false

Indicates whether the dark theme should be used. Defaults to false.

Link copied to clipboard
val withAmoled: Boolean = false

Indicates whether AMOLED mode should be enabled. Defaults to false.

Functions

Link copied to clipboard
fun getColor(colorRole: MaterialDynamicColors.() -> DynamicColor = { primary() }): Color