selection

package
v0.1.122 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Copy returns a copy of the TextSelectionColors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL