Package-level declarations

Types

Link copied to clipboard

Object providing access to the current ThemePrefs from composition. Use inside a PreferableMaterialTheme (or Material3 equivalent) scope.

Link copied to clipboard

Platform-specific storage for theme preference. Implementations persist the selected ThemeEnum (e.g. SharedPreferences on Android, Preferences on JVM).

Link copied to clipboard

Theme option for light/dark/system appearance.

Link copied to clipboard
abstract class ThemePrefs(val preferenceHelper: PreferenceHelper)

Base class for theme preferences (light/dark/system). Holds the current theme state and a PreferenceHelper for persistence.

Properties

Link copied to clipboard

CompositionLocal providing the current ThemePrefs in the composition tree. Must be provided by a theme composable (e.g. PreferableMaterialTheme).

Functions

Link copied to clipboard

Returns a PreferenceHelper remembered across recompositions. Use this to obtain the platform-specific preference backend for ThemePrefs.