ThemeResourceImpl

open class ThemeResourceImpl<T>(resourceLight: T, resourceDark: T) : ThemeResource<T>

Implementation of ThemeResource supporting separate light and dark theme values.

Type Parameters

T

The type of resource returned.

Inheritors

Constructors

Link copied to clipboard
constructor(resourceLight: T, resourceDark: T)

Functions

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

Returns the light or dark resource based on SeslMisc.isLightTheme.