highlights

App-owned highlights, each with its own fill colour and its own optional margin marker. Painted over the page after searchHighlights, in list order, so later entries win where they overlap. Clear by assigning an empty list.

state.highlights = notes.map { note ->
PdfHighlight(
hit = KiteSearchHit(note.pageIndex, note.quads, note.text),
color = note.category.tint,
edgeMarker = true,
)
}

See PdfHighlight for the per-entry knobs.