androidx.compose.foundation.text.selection
TextSelectionColors
Class · from org.jetbrains.compose.foundation:foundation:1.12.2
No hand-written docs yet.
Represents the colors used for text selection by text and text field components.
class TextSelectionColors(
handleColor: Color,
backgroundColor: Color,
)
How to get one
Create it
TextSelectionColors(handleColor, backgroundColor)constructor
Used by
Parameters that take a TextSelectionColors.
ExposedDropdownMenuDefaults.outlinedTextFieldColors(selectionColors)ExposedDropdownMenuDefaults.textFieldColors(selectionColors)OutlinedTextFieldDefaults.colors(selectionColors)SearchBarDefaults.inputFieldColors(selectionColors)TextFieldColors.copy(textSelectionColors)TextFieldDefaults.colors(selectionColors)
Properties
handleColor
val handleColor: Color
backgroundColor
val backgroundColor: Color
Library docs
Represents the colors used for text selection by text and text field components.
See LocalTextSelectionColors to provide new values for this throughout the hierarchy.