OpenThemeResourceImpl

open class OpenThemeResourceImpl(val defaultThemeResource: ThemeResource<Int>, val openThemeResource: ThemeResource<Int>) : ThemeResource<Int>

Implementation of ThemeResource supporting open theme (overlay theme) resources.

Resolves to defaultThemeResource if DeX mode is enabled or no overlay theme is applied, otherwise resolves to openThemeResource.

Inheritors

Constructors

Link copied to clipboard
constructor(defaultThemeResource: ThemeResource<Int>, openThemeResource: ThemeResource<Int>)

Properties

Link copied to clipboard

The default ThemeResource used when open theme is not applied or DeX is active.

Link copied to clipboard

The open theme ThemeResource used when overlay theme is applied.

Functions

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

Resolves the resource value based on DeX state and overlay theme application.