Skip to content

composableThemeLocation

inline fun composableThemeLocation(
    namespace: String, 
    type: String, 
    composable: String
): ResourceLocation

Builds the ResourceLocation used to look up a composable's default-variant theme definition.

The resulting path is <namespace>:<composable> with an optional <type>/ prefix when type is non-empty (e.g. archie:java/button).

inline fun composableThemeLocation(
    namespace: String, 
    type: String, 
    mode: String, 
    composable: String
): ResourceLocation

Builds the ResourceLocation used to look up a composable's theme definition for a specific non-default mode (variant).

The resulting path is <namespace>:<composable> with an optional <type>/ and <mode>/ prefix, in that order, for each that is non-empty (e.g. archie:java/dark/button).