Theme

Controls the UI theming for TikiSdk.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun accentColor(accentColor: Int): Theme

Sets the accent color.

Link copied to clipboard
fun and(): TikiSdk

Returns the TikiSdk instance to simplify the chaining of methods in SDK configuration and initialization.

Link copied to clipboard
fun fontFamily(fontRegular: Int, fontBold: Int, fontLight: Int, fontMedium: Int, fontSemiBold: Int): Theme

Sets the font family variations.

Link copied to clipboard
fun primaryBackgroundColor(primaryBackgroundColor: Int): Theme

Sets the primary background color.

Link copied to clipboard
fun primaryTextColor(primaryTextColor: Int): Theme

Sets the primary text color.

Link copied to clipboard
fun secondaryBackgroundColor(secondaryBackgroundColor: Int): Theme

Sets the secondary background color.

Link copied to clipboard
fun secondaryTextColor(secondaryTextColor: Int): Theme

Sets the secondary text color.

Properties

Link copied to clipboard

Accent color. Used to decorate or highlight items.

Link copied to clipboard

The fontFamily Bold variation.

Link copied to clipboard

The fontFamily Light variation.

Link copied to clipboard

The fontFamily Medium variation.

Link copied to clipboard

The fontFamily Regular variation.

Link copied to clipboard

The fontFamily SemiBold variation.

Link copied to clipboard

Primary background color. The default color for backgrounds.

Link copied to clipboard

Primary text color. Used in default text items.

Link copied to clipboard

Secondary background color.

Link copied to clipboard

Secondary text color. Used in specific text items. Defaults to primaryTextColor with 60% alpha transparency.