TextStyle

data class TextStyle(val color: ArgbColor = ArgbColor(-1), val shadow: TextShadow? = TextShadow.Automatic, val disabledColor: ArgbColor? = null)(source)

Immutable foreground and independent shadow policy shared by labels and editors. Font selection and logical text metrics are independent of this value.

Constructors

Link copied to clipboard
constructor(color: ArgbColor = ArgbColor(-1), shadow: TextShadow? = TextShadow.Automatic, disabledColor: ArgbColor? = null)

Types

Link copied to clipboard
object Companion

Standard Minecraft-compatible presets, which can also be customized with copy.

Properties

Link copied to clipboard

foreground tint, including alpha.

Link copied to clipboard

optional foreground override for disabled editors; null uses color.

Link copied to clipboard

shadow policy; null omits shadow images and drawing commands in both enabled states.