class TextEditAppearance
source · line 59public
public class TextEditAppearance public constructor(
public val fonts: FontCollection,
public val textStyle: TextStyle = textStyle(),
public val placeholderStyle: TextStyle = textStyle { this.color = Color(0.5, 0.5, 0.5) },
public val selectionColor: Color = Color(0.2, 0.45, 0.9, 0.3),
public val inactiveSelectionColor: Color = Color(0.5, 0.5, 0.5, 0.25),
public val caretColor: Color = Color.Black,
public val markedColor: Color = Color.Black,
public val caretWidth: Double? = None,
public val reduceMotion: Boolean = false,
/** None preserves the original selected glyph colors in the active window. */
public val selectionTextColor: Color? = None,
/** None preserves the original selected glyph colors in an inactive window. */
public val inactiveSelectionTextColor: Color? = None
)
Borrows fonts and immutable styles; the host owns only the resulting layouts.
property inactiveSelectionColor
source · line 64public
public val inactiveSelectionColor: Color = Color(0.5, 0.5, 0.5, 0.25)
get: public read-only
property selectionTextColor
source · line 70public
public val selectionTextColor: Color? = None
get: public read-only
None preserves the original selected glyph colors in the active window.
property caretWidth
source · line 67public
public val caretWidth: Double? = None
get: public read-only
property placeholderStyle
source · line 62public
public val placeholderStyle: TextStyle = textStyle { this.color = Color(0.5, 0.5, 0.5) }
get: public read-only
property selectionColor
source · line 63public
public val selectionColor: Color = Color(0.2, 0.45, 0.9, 0.3)
get: public read-only
property inactiveSelectionTextColor
source · line 72public
public val inactiveSelectionTextColor: Color? = None
get: public read-only
None preserves the original selected glyph colors in an inactive window.
constructor constructor
source · line 59public
constructor(public val fonts: FontCollection, public val textStyle: TextStyle = textStyle(), public val placeholderStyle: TextStyle = textStyle { this.color = Color(0.5, 0.5, 0.5) }, public val selectionColor: Color = Color(0.2, 0.45, 0.9, 0.3), public val inactiveSelectionColor: Color = Color(0.5, 0.5, 0.5, 0.25), public val caretColor: Color = Color.Black, public val markedColor: Color = Color.Black, public val caretWidth: Double? = None, public val reduceMotion: Boolean = false, public val selectionTextColor: Color? = None, public val inactiveSelectionTextColor: Color? = None)
parameter selectionColor
source · line 63public
public val selectionColor: Color = Color(0.2, 0.45, 0.9, 0.3)
parameter reduceMotion
source · line 68public
public val reduceMotion: Boolean = false
parameter inactiveSelectionColor
source · line 64public
public val inactiveSelectionColor: Color = Color(0.5, 0.5, 0.5, 0.25)
parameter textStyle
source · line 61public
public val textStyle: TextStyle = textStyle()
parameter inactiveSelectionTextColor
source · line 72public
public val inactiveSelectionTextColor: Color? = None
parameter fonts
source · line 60public
public val fonts: FontCollection
parameter selectionTextColor
source · line 70public
public val selectionTextColor: Color? = None
parameter markedColor
source · line 66public
public val markedColor: Color = Color.Black
parameter caretWidth
source · line 67public
public val caretWidth: Double? = None
parameter placeholderStyle
source · line 62public
public val placeholderStyle: TextStyle = textStyle { this.color = Color(0.5, 0.5, 0.5) }
parameter caretColor
source · line 65public
public val caretColor: Color = Color.Black
property textStyle
source · line 61public
public val textStyle: TextStyle = textStyle()
get: public read-only
property fonts
source · line 60public
public val fonts: FontCollection
get: public read-only
property caretColor
source · line 65public
public val caretColor: Color = Color.Black
get: public read-only
property markedColor
source · line 66public
public val markedColor: Color = Color.Black
get: public read-only
property reduceMotion
source · line 68public
public val reduceMotion: Boolean = false
get: public read-only