Package-level declarations
Types
Link copied to clipboard
object PreferableMaterialTheme
Object providing access to the current ThemePrefs from composition. Use inside a PreferableMaterialTheme (or Material3 equivalent) scope.
Link copied to clipboard
interface PreferenceHelper
Platform-specific storage for theme preference. Implementations persist the selected ThemeEnum (e.g. SharedPreferences on Android, Preferences on JVM).
Link copied to clipboard
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.