SettingsAccentColorStore

class SettingsAccentColorStore(settings: Settings) : AccentColorStore

Backed by multiplatform-settings, mirroring SettingsThemeModeStore — the same cross-platform persistence the app's wasmJs target requires.

On a fresh install (nothing stored) a random accent is chosen and persisted, so every install opens with a varied accent that then stays put across launches; the user can still change it.

Constructors

Link copied to clipboard
constructor(settings: Settings)

Properties

Link copied to clipboard
open override val accentColorFlow: StateFlow<AccentColor>

Functions

Link copied to clipboard
open override fun get(): AccentColor
Link copied to clipboard
open override fun set(accent: AccentColor)