ThemeData¶
@Immutable
data class ThemeData(
val mode: String,
val type: String,
val darkTextColor: KColor,
val lightTextColor: KColor,
val namespace: String = Archie.MOD_ID
)
Immutable data holder describing the active theme context for composables.
Provided through LocalTheme to all composables under a Theme wrapper.
Constructors¶
ThemeData¶
Properties¶
darkTextColor¶
val darkTextColor: KColor
lightTextColor¶
val lightTextColor: KColor
mode¶
namespace¶
resolvedMode¶
val resolvedMode: String
type¶
Functions¶
getComposableTheme¶
fun getComposableTheme(composable: String): ComposableTheme
Resolves the ComposableTheme for the given composable name using the active namespace, type, and global mode.
Return
The ComposableTheme definition loaded from resources.
Parameters
- composable: The composable theme name (e.g.
"button","slot").