ThemePreferencesDataSource
Persisted appearance preferences: theme mode, AMOLED, and palette selection.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Emits the selected dynamic palette variant, clamped to a supported index.
Link copied to clipboard
Emits the selected static palette id, sanitized to a known palette.
Link copied to clipboard
Emits every stored value at once, each as its own flow above reports it.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Persists the dynamic palette variant, clamped to a supported index.
Link copied to clipboard
open suspend fun savePalette(dynamicColors: Boolean, dynamicPaletteVariant: Int? = null, staticPaletteId: String? = null)
Persists a palette choice: whether dynamic colors are on, plus the palette that goes with it. A null value is left unchanged.
Link copied to clipboard
Persists the static palette id, sanitized to a known palette.
Link copied to clipboard