SeslThemeResourceColor
Abstract class representing a theme-dependent color resource.
This class provides a framework for defining colors that adapt to the current theme (light/dark) and potentially to whether a default or custom theme (on a One UI device) is active.
It contains the following nested classes to handle specific color resource scenarios:
Types
Link copied to clipboard
data class OpenThemeResourceColor(val defaultThemeResource: SeslThemeResourceColor.ThemeResourceColor, val openThemeResource: SeslThemeResourceColor.ThemeResourceColor) : SeslThemeResourceColor.ResourceColor
Represents a color that has different definitions for default and custom themes (on a One UI device).
Link copied to clipboard
The base class for all theme-dependent color resources.
Link copied to clipboard
data class ThemeResourceColor @JvmOverloads constructor(val lightThemeResId: Int, val darkThemeResId: Int = lightThemeResId) : SeslThemeResourceColor.ResourceColor
Data class encapsulating alternative color resources for light and dark themes.