Default Search Result Highlight
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 isSelected, a border with a single pulse animation is added.
Parameters
rect
: The rect (in view coordinates) to highlight.
is Selected
Whether the highlight should be marked as selected.
highlight Color
The color of the highlighted area.
border For Selected
The color of the border to be used if the area is to be shown as isSelected.