Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalTextSelectionColors = compose.CompositionLocalOf(DefaultTextSelectionColors)
LocalTextSelectionColors is a CompositionLocal for TextSelectionColors. Provides selection colors to text composables within the composition.
Functions ¶
This section is empty.
Types ¶
type TextSelectionColors ¶
type TextSelectionColors struct {
// BackgroundColor is the color used for the selection background highlight.
BackgroundColor graphics.Color
}
TextSelectionColors represents the colors used for text selection.
func DefaultTextSelectionColors ¶
func DefaultTextSelectionColors() TextSelectionColors
DefaultTextSelectionColors returns the default text selection colors. Uses a light blue for selection background similar to Android defaults.
func NewTextSelectionColors ¶
func NewTextSelectionColors(backgroundColor graphics.Color) TextSelectionColors
NewTextSelectionColors creates new TextSelectionColors with the given colors.
func (TextSelectionColors) Copy ¶
func (c TextSelectionColors) Copy() TextSelectionColors
Copy returns a copy of the TextSelectionColors.
Click to show internal directories.
Click to hide internal directories.