- Okugcinwe kunqolobane
Change text color in highlighted results of PDF Reader 'Find' (search)?
Anyone know what's needed to style the text color in *PDFviewer's highlighted "Find" results, AND make it readable? It's easy changing PDFjs' highlighted background color… (funda kabanzi)
Anyone know what's needed to style the text color in *PDFviewer's highlighted "Find" results, AND make it readable?
It's easy changing PDFjs' highlighted background colors of "Find" results (Ctrl + F). Due to "textLayer" use in pdfjs, may not be easy to change text color for the same results (and be readable).
/** userContent.css **/ .pdfViewer .textLayer .highlight { background-color: rgb(239 15 255 / .3) !important; }
.pdfViewer .textLayer .highlight.selected { background-color: rgb(0 255 255 / .3) !important; }
Adding the property, "color: red !important;" to both rules creates a RED text layer in highlighted results (misaligned w/ original text).