ColorTheme

open class ColorTheme

Color theme can be used as a global modifier for the colors of the style and style imports. In order to use custom color theme you need to provide an image that will represent LUT (color grading lookup table). Image height must be less or equal to 32 pixels and width of the image should be equal to the height squared. Either image or base64 image representation should be provided.

Constructors

Link copied to clipboard
open fun ColorTheme(@NonNull value: Image)
Create a variant from Image.
Link copied to clipboard
Create a variant from StylePropertyValue.

Types

Link copied to clipboard
enum Type
Type information of the variant's content

Functions

Link copied to clipboard
open fun getImage(): Image
Get content with type Image from the variant.
Link copied to clipboard
Get content with type StylePropertyValue from the variant.
Link copied to clipboard
Get type info enum of the variant.
Link copied to clipboard
open fun isImage(): Boolean
Check if the content of variant has type Image.
Link copied to clipboard
Check if the content of variant has type StylePropertyValue.
Link copied to clipboard
open fun toString(): String
Get a string representation of the value contained in the variant.
Link copied to clipboard
open fun valueOf(@NonNull value: Image): ColorTheme
Create a variant from Image.
Create a variant from StylePropertyValue.