ResolvedTheme

Represents the resolved theme. This enum defines the possible theme values that can be used in the app.

Entries

Link copied to clipboard

The system defined theme. This theme follows the system's theme settings.

Link copied to clipboard

The fixed LIGHT theme. This theme is not system-defined and forces light mode.

Link copied to clipboard

The fixed DARK theme. This theme is not system-defined and forces dark mode.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
open override val key: String

The key value corresponding to the theme. Used for identifying the theme type in the system.

Functions

Link copied to clipboard
open override fun getResolvedTheme(): ResolvedTheme

Returns this theme as the resolved theme

Link copied to clipboard

Determines if the theme represents dark mode in the given context

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.