OpenThemeResourceColor

Represents a color that has different definitions for default and custom themes (on a One UI device).

This class allows specifying different color resources for the default theme and for any other "open" (custom) theme. The appropriate color will be chosen at runtime based on the currently active theme.

Constructors

Link copied to clipboard
constructor(defaultThemeResource: SeslThemeResourceColor.ThemeResourceColor, openThemeResource: SeslThemeResourceColor.ThemeResourceColor)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ThemeResourceColor to be used when the default theme is active.

Link copied to clipboard

The ThemeResourceColor to be used when a custom theme is active. This applies to One UI devices only.

Functions

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