DefaultSearchResultHighlight

fun DefaultSearchResultHighlight(rect: Rect, isSelected: Boolean, highlightColor: Color = Color(0x7FFCEE66), borderForSelected: Color = MaterialTheme.colorScheme.onBackground)

Default search result highlight composable. Puts a translucent yellow box at the given rect. If selected, a border with a single pulse animation is added.

Parameters

rect

: The rect (in view coordinates) to highlight.

isSelected

: Whether the highlight should be marked as selected.

highlightColor

: The color of the highlighted area.

borderForSelected

: The color of the border to be used if the area is to be shown as selected.