Builder

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.

Constructors

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

Properties

Link copied to clipboard

The contrast setting for the theme.

Link copied to clipboard

Indicates whether extended fidelity is enabled.

Link copied to clipboard

A lambda to modify the color scheme.

Link copied to clipboard

The primary color used for the theme.

Link copied to clipboard

The style to be applied to the theme.

Link copied to clipboard

Indicates whether the dark theme should be used.

Link copied to clipboard

Indicates whether AMOLED mode should be enabled.

Functions

Link copied to clipboard

Builds the PaletteonTheme from the current state of the Builder.

Link copied to clipboard

Moves to the next Contrast in the enum.

Link copied to clipboard

Moves to the next PaletteStyle in the enum.

Link copied to clipboard

Moves to the previous Contrast in the enum.

Link copied to clipboard

Moves to the previous PaletteStyle in the enum.

Link copied to clipboard

Toggles the AMOLED mode setting.

Link copied to clipboard

Toggles the dark theme setting.

Link copied to clipboard

Toggles the extended fidelity setting.