ColorThemeBuilder

data class ColorThemeBuilder(name: String, primaryForegroundColor: TileColor, secondaryForegroundColor: TileColor, primaryBackgroundColor: TileColor, secondaryBackgroundColor: TileColor, accentColor: TileColor) : Builder<ColorTheme>

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): ColorTheme
Builds an object of type T.
copy
Link copied to clipboard
common
fun copy(name: String = "anonymous", primaryForegroundColor: TileColor = TileColor.defaultForegroundColor(), secondaryForegroundColor: TileColor = TileColor.defaultForegroundColor(), primaryBackgroundColor: TileColor = TileColor.defaultBackgroundColor(), secondaryBackgroundColor: TileColor = TileColor.defaultBackgroundColor(), accentColor: TileColor = TileColor.defaultForegroundColor()): ColorThemeBuilder
createCopy
Link copied to clipboard
common
open override fun createCopy(): ColorThemeBuilder
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String
withAccentColor
Link copied to clipboard
common
fun withAccentColor(accentColor: TileColor): ColorThemeBuilder
withName
Link copied to clipboard
common
fun withName(name: String): ColorThemeBuilder
withPrimaryBackgroundColor
Link copied to clipboard
common
fun withPrimaryBackgroundColor(primaryBackgroundColor: TileColor): ColorThemeBuilder
withPrimaryForegroundColor
Link copied to clipboard
common
fun withPrimaryForegroundColor(primaryForegroundColor: TileColor): ColorThemeBuilder
withSecondaryBackgroundColor
Link copied to clipboard
common
fun withSecondaryBackgroundColor(secondaryBackgroundColor: TileColor): ColorThemeBuilder
withSecondaryForegroundColor
Link copied to clipboard
common
fun withSecondaryForegroundColor(secondaryForegroundColor: TileColor): ColorThemeBuilder

Sources

(source)
Link copied to clipboard