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)) : Parcelable

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
Link copied to clipboard

The color with a very high alpha (transparency) value used to fill certain overlays.

Link copied to clipboard

The color used to convey a negative meaning.

Link copied to clipboard

The color used for displaying elements on top of the primary color.

Link copied to clipboard

The color used for displaying elements on top of the secondary color.

Link copied to clipboard

The color used on top of surfaces.

Link copied to clipboard

The alternative color used on top of surfaces.

Link copied to clipboard

The color used for outlines.

Link copied to clipboard

The color used to convey a positive meaning.

Link copied to clipboard

The primary color used for enabled elements.

Link copied to clipboard

The primary color used for disabled elements.

Link copied to clipboard

The secondary color used for enabled elements.

Link copied to clipboard

The secondary color used for disabled elements.

Link copied to clipboard

The color used for surfaces.

Link copied to clipboard

The color with a high alpha (transparency) value used for certain surfaces.

Link copied to clipboard

The color with a low alpha (transparency) value used for certain surfaces.

Link copied to clipboard

The color used to convey warnings.

Functions

Link copied to clipboard
fun clone(): Palette
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject