PdfViewColors

constructor(pageBackground: Color = Color.White, viewportBackground: Color = Color.Transparent, theme: ReaderTheme? = null, searchHighlight: Color = Color(0x66FFEB3B), selectionHighlight: Color = Color(0x664285F4), selectionHandle: Color = Color(0xFF4285F4), selectionHandlePainter: PdfSelectionHandlePainter? = null)

Parameters

pageBackground

painted behind page content (most PDFs assume white paper and paint nothing themselves). Ignored when theme is set. The theme owns the paper colour then.

viewportBackground

the letterbox/gutter colour around pages.

theme

optional reading theme (ReaderTheme.Dark/ReaderTheme.Sepia/ ReaderTheme.Light). When set, page content colours are remapped (text, borders, backgrounds, not images) and the paper uses the theme background. Reflowable EPUB especially benefits: night mode without re-laying-out.