PersistenceManager

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Snapshot(val palettePrimary: ColorPalette?, val paletteLight: ColorPalette, val paletteDark: ColorPalette, val grayscale: Boolean, val outline: Dp, val roundness: Float)

A snapshot of the current preferences.

Properties

Link copied to clipboard
abstract var grayscale: Boolean
Link copied to clipboard
open val isDefault: Boolean

If the current preferences match the default preferences.

Link copied to clipboard
abstract var outline: Dp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var roundness: Float

Functions

Link copied to clipboard
open fun activePalette(isSystemInDarkTheme: Boolean = isSystemInDarkTheme()): ColorPalette
Link copied to clipboard
Link copied to clipboard
open fun reset()

Resets the preferences to the default preferences.

Link copied to clipboard