StyleOptions

data class StyleOptions(val foregroundColor: Color? = null, val backgroundColor: Color? = null, val borderColor: Color? = null, val borderWidth: Sizes? = null, val borderStyle: NodeStyle.BorderStyle? = null, val alignment: NodeStyle.Alignment? = null, val textAlignment: NodeStyle.TextAlignment? = null, val margin: Sizes? = null, val padding: Sizes? = null, val cornerRadius: Sizes? = null, val fontSize: TextTransformData.Size? = null, val fontWeight: TextTransformData.Weight? = null, val fontStyle: TextTransformData.Style? = null, val fontVariant: TextTransformData.Variant? = null, val textDecoration: TextTransformData.Decoration? = null, val textCase: TextTransformData.Case? = null)

Parameters

foregroundColor

text color. Default if unset

backgroundColor

background color. Transparent if unset

borderColor

border color. Default if unset and borderWidth is set

borderWidth

border width. Default if unset and borderColor is set

borderStyle

border style. Normal (solid) if unset and borderColor or borderWidth is set

alignment

alignment of the content. Default if unset

textAlignment

alignment of the text. alignment if unset

margin

whitespace outside the content. None if unset

padding

whitespace around the content. None if unset

cornerRadius

corner (and border) radius. None if unset

fontSize

relative font size of the text. Normal if unset

fontWeight

font weight of the text. Normal if unset

fontStyle

font style of the text. Normal if unset

fontVariant

font variant of the text. Normal if unset

textDecoration

text decoration of the text. None if unset

textCase

text case of the text. Normal if unset

Constructors

Link copied to clipboard
constructor(foregroundColor: Color? = null, backgroundColor: Color? = null, borderColor: Color? = null, borderWidth: Sizes? = null, borderStyle: NodeStyle.BorderStyle? = null, alignment: NodeStyle.Alignment? = null, textAlignment: NodeStyle.TextAlignment? = null, margin: Sizes? = null, padding: Sizes? = null, cornerRadius: Sizes? = null, fontSize: TextTransformData.Size? = null, fontWeight: TextTransformData.Weight? = null, fontStyle: TextTransformData.Style? = null, fontVariant: TextTransformData.Variant? = null, textDecoration: TextTransformData.Decoration? = null, textCase: TextTransformData.Case? = null)

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
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