janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.68k stars 1.33k forks source link

Consider implementing themes in pdf.js, specifically a dark mode ui #2150

Open plutoneld opened 2 years ago

plutoneld commented 2 years ago

I searched and couldn't find an issue regarding dark mode specific to the pdf viewer. If this is a duplicate, I'm sorry!

Describe the solution you'd like Themes for pdf.js, specifically a dark mode for the UI (not the actual PDF)

Describe alternatives you've considered I could download and open the PDFs in my PDF reader of choice, but I do like the features of pdf.js otherwise.

Additional context Another project which incorporates PDF.js implemented themes a while back. The themes in question can be found here: https://github.com/Djphoenix719/PDFoundry/tree/master/src/css/themes

Please let me know if you wish to have more information regarding their implementation, like a screenshot or something.

GreenKudu commented 8 months ago

See #2911 which explains how to use https://github.com/shivaprsd/doq to achieve this, which just fits into pdf.js.