MaterialThemePrefs
class MaterialThemePrefs(preferenceHelper: PreferenceHelper, darkColorPalette: Colors = darkColors(), lightColorPalette: Colors = lightColors()) : ThemePrefs
ThemePrefs implementation for Material (v1) theming. Provides colors that switch based on ThemeEnum (light/dark/system).
Parameters
preferenceHelper
Backing storage for the selected theme.
darkColorPalette
Colors used when dark theme is active. Defaults to darkColors.
lightColorPalette
Colors used when light theme is active. Defaults to lightColors.
Constructors
Link copied to clipboard
constructor(preferenceHelper: PreferenceHelper, darkColorPalette: Colors = darkColors(), lightColorPalette: Colors = lightColors())
Properties
Link copied to clipboard
Current Colors based on ThemeEnum. For ThemeEnum.SystemDefault, follows system dark/light.
Link copied to clipboard
Returns Colors when this ThemePrefs is a MaterialThemePrefs; use inside Material theme scope.
Link copied to clipboard
Link copied to clipboard