IviThemeCategory
The IviThemeCategory describes which aspect of a theme a IviThemeComponent applies to. For example, a theme component may have a IviThemeCategory indicating that the component themes font attributes.
Parameters
id
An identifier used to differentiate between categories. This needs to be unique for different categories.
label
The text can be used to display the category.
Properties
Inherited functions
Link copied to clipboard
fun <SF : Enum<SF>, IviThemeCategoryStylingFlavor> IviThemeCategory.createComponent(id: String, stylingFlavor: SF): IviThemeComponent.WithStylingFlavorType<SF>
fun IviThemeCategory.createComponent(id: String, label: StringResolver): IviThemeComponent.WithoutStylingFlavorType
fun IviThemeCategory.createComponent(id: String, label: String): IviThemeComponent.WithoutStylingFlavorType
Creates an IviThemeComponent for theming the IviThemeCategory receiver instance.
Link copied to clipboard
inline fun <SF : Enum<SF>, IviThemeCategoryStylingFlavor> IviThemeCategory.createComponents(noinline idProvider: (SF) -> String): Set<IviThemeComponent.WithStylingFlavorType<SF>>
Creates IviThemeComponents for theming the IviThemeCategory receiver instance. An IviThemeComponent is created for each styling flavor defined by the enum type SF.
fun <SF : Enum<SF>, IviThemeCategoryStylingFlavor> IviThemeCategory.createComponents(stylingFlavors: Set<SF>, idProvider: (SF) -> String): Set<IviThemeComponent.WithStylingFlavorType<SF>>
Creates IviThemeComponents for theming the IviThemeCategory receiver instance. An IviThemeComponent is created for each styling flavor in stylingFlavors.
Link copied to clipboard
Link copied to clipboard