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
val alignment: NodeStyle.Alignment?
Link copied to clipboard
val backgroundColor: Color?
Link copied to clipboard
val borderColor: Color?
Link copied to clipboard
val borderStyle: NodeStyle.BorderStyle?
Link copied to clipboard
val borderWidth: Sizes?
Link copied to clipboard
val cornerRadius: Sizes?
Link copied to clipboard
val fontSize: TextTransformData.Size?
Link copied to clipboard
val fontStyle: TextTransformData.Style?
Link copied to clipboard
val fontVariant: TextTransformData.Variant?
Link copied to clipboard
val fontWeight: TextTransformData.Weight?
Link copied to clipboard
val foregroundColor: Color?
Link copied to clipboard
val margin: Sizes?
Link copied to clipboard
val padding: Sizes?
Link copied to clipboard
val textAlignment: NodeStyle.TextAlignment?
Link copied to clipboard
val textCase: TextTransformData.Case?
Link copied to clipboard
val textDecoration: TextTransformData.Decoration?

Functions

Link copied to clipboard
fun toNodeStyle(): NodeStyle