Palette

data class Palette(var sbColorPrimary: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), var sbColorPrimaryDisabled: ScanbotColor = ScanbotColor("#F5F5F5", isArgb = false), var sbColorNegative: ScanbotColor = ScanbotColor("#FF3737", isArgb = false), var sbColorPositive: ScanbotColor = ScanbotColor("#4EFFB4", isArgb = false), var sbColorWarning: ScanbotColor = ScanbotColor("#FFCE5C", isArgb = false), var sbColorSecondary: ScanbotColor = ScanbotColor("#FFEDEE", isArgb = false), var sbColorSecondaryDisabled: ScanbotColor = ScanbotColor("#F5F5F5", isArgb = false), var sbColorOnPrimary: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var sbColorOnSecondary: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), var sbColorSurface: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), var sbColorOutline: ScanbotColor = ScanbotColor("#EFEFEF", isArgb = false), var sbColorOnSurfaceVariant: ScanbotColor = ScanbotColor("#707070", isArgb = false), var sbColorOnSurface: ScanbotColor = ScanbotColor("#000000", isArgb = false), var sbColorSurfaceLow: ScanbotColor = ScanbotColor("#00000026", isArgb = false), var sbColorSurfaceHigh: ScanbotColor = ScanbotColor("#0000007A", isArgb = false), var sbColorModalOverlay: ScanbotColor = ScanbotColor("#000000A3", isArgb = false))

Value palette describing the colors of the scanner screens.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(sbColorPrimary: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), sbColorPrimaryDisabled: ScanbotColor = ScanbotColor("#F5F5F5", isArgb = false), sbColorNegative: ScanbotColor = ScanbotColor("#FF3737", isArgb = false), sbColorPositive: ScanbotColor = ScanbotColor("#4EFFB4", isArgb = false), sbColorWarning: ScanbotColor = ScanbotColor("#FFCE5C", isArgb = false), sbColorSecondary: ScanbotColor = ScanbotColor("#FFEDEE", isArgb = false), sbColorSecondaryDisabled: ScanbotColor = ScanbotColor("#F5F5F5", isArgb = false), sbColorOnPrimary: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), sbColorOnSecondary: ScanbotColor = ScanbotColor("#C8193C", isArgb = false), sbColorSurface: ScanbotColor = ScanbotColor("#FFFFFF", isArgb = false), sbColorOutline: ScanbotColor = ScanbotColor("#EFEFEF", isArgb = false), sbColorOnSurfaceVariant: ScanbotColor = ScanbotColor("#707070", isArgb = false), sbColorOnSurface: ScanbotColor = ScanbotColor("#000000", isArgb = false), sbColorSurfaceLow: ScanbotColor = ScanbotColor("#00000026", isArgb = false), sbColorSurfaceHigh: ScanbotColor = ScanbotColor("#0000007A", isArgb = false), sbColorModalOverlay: ScanbotColor = ScanbotColor("#000000A3", isArgb = false))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Transparent color with a very high alpha value used to fill certain overlays. Default is "#000000A3"

Link copied to clipboard

Color used to convey a negative meaning. Default is "#FF3737"

Link copied to clipboard

Color used for displaying elements on top of the primary color. Default is "#FFFFFF"

Link copied to clipboard

Color used for displaying elements on top of the secondary color. Default is "#C8193C"

Link copied to clipboard

Color used on top of surfaces. Default is "#000000"

Link copied to clipboard

Alternative color used on top of surfaces. Default is "#707070"

Link copied to clipboard

Color used for outlines. Default is "#EFEFEF"

Link copied to clipboard

Color used to convey a positive meaning. Default is "#4EFFB4"

Link copied to clipboard

Primary color used for enabled elements. Default is "#C8193C"

Link copied to clipboard

Primary color used for disabled elements. Default is "#F5F5F5"

Link copied to clipboard

Secondary color used for enabled elements. Default is "#FFEDEE"

Link copied to clipboard

Secondary color used for disabled elements. Default is "#F5F5F5"

Link copied to clipboard

Color used for surfaces. Default is "#FFFFFF"

Link copied to clipboard

Transparent color with a high alpha value used for certain surfaces. Default is "#0000007A"

Link copied to clipboard

Transparent color with a low alpha value used for certain surfaces. Default is "#00000026"

Link copied to clipboard

Color used to convey warnings. Default is "#FFCE5C"

Functions

Link copied to clipboard
fun toJson(): JsonObject