Theme

sealed class Theme

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun dimension(dimension: String, default: Int = 0): Int

Return a dimension if defined, or default otherwise

Link copied to clipboard
fun dimensionOrNull(dimension: String): Int?

Return a dimension if defined, or null otherwise

Link copied to clipboard
fun flag(flag: String, default: Boolean = false): Boolean

Return a flag if defined, or default otherwise

Link copied to clipboard

Return a flag if defined, or null otherwise

Link copied to clipboard
operator fun Theme.plus(other: Theme): Theme

Create a new theme by replacing or adding entries to this theme from an other theme.

Link copied to clipboard
fun string(string: String, default: String = ""): String

Return a string if defined, or default otherwise

Link copied to clipboard
fun stringOrNull(string: String): String?

Return a string if defined, or null otherwise

Link copied to clipboard
fun style(style: String, default: TextStyle = DEFAULT_STYLE): TextStyle

Return a style if defined, or default otherwise

Link copied to clipboard

Return a style if defined, or null otherwise