TextSelectionColors


Represents the colors used for text selection by text and text field components.

See LocalTextSelectionColors to provide new values for this throughout the hierarchy.

Summary

Public constructors

TextSelectionColors(handleColor: Color, backgroundColor: Color)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Color

the color used to draw the background behind the selected region.

Cmn
Color

the color used for the selection handles on either side of the selection region.

Cmn

Public constructors

TextSelectionColors

TextSelectionColors(handleColor: Color, backgroundColor: Color)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

backgroundColor

val backgroundColorColor

the color used to draw the background behind the selected region. This color should have alpha applied to keep the text legible - this alpha is typically 0.4f (40%) but this may need to be reduced in order to meet contrast requirements depending on the color used for text, selection background, and the background behind the selection background.

handleColor

val handleColorColor

the color used for the selection handles on either side of the selection region.