ThemeResourceColor

data class ThemeResourceColor @JvmOverloads constructor(val lightThemeResId: Int, val darkThemeResId: Int = lightThemeResId) : SeslThemeResourceColor.ResourceColor(source)

Data class encapsulating alternative color resources for light and dark themes.

This class holds resource IDs for colors to be used in light and dark themes. It extends ResourceColor and provides a concrete implementation for retrieving the appropriate color resource ID based on the current theme (light or dark).

Constructors

Link copied to clipboard
constructor(lightThemeResId: Int, darkThemeResId: Int = lightThemeResId)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The resource ID of the color to be used in a dark theme. Defaults to lightThemeResId if not specified.

Link copied to clipboard

The resource ID of the color to be used in a light theme.

Functions

Link copied to clipboard
open override fun getColor(context: Context): Int