r/firefox • u/LegendWesker • 7d ago
Discussion Dark Mode PDF Viewer
Can the Firefox PDF Viewer please get a native Darkmode and or a brightness slider? For me it seems the only way to do it is to change the configs and add ons are not allowed to change it for easier turn on/off.
Since acrobat reader got the AI features and crashes almost everytime because of it, firefox is my main pdf reader. But the lack of darkmode options is a real pain.
Edit: created a request at the Github: https://github.com/mozilla/pdf.js/issues/22586
8
Upvotes
1
u/juraj_m www.FastAddons.com 6d ago
It may be best to request it here:
https://github.com/mozilla/pdf.js/issues
Then share the link here so we can subscribe and upvote :)
2
u/NightPageReader 6d ago
Firefox can already do it, it's just hidden: in about:config set pdfjs.forcePageColors to true, then pick colours with pdfjs.pageColorsBackground (e.g. #1e1e1e) and pdfjs.pageColorsForeground (e.g. #d0d0d0). It recolours text and background. Images can look odd, and there's still no quick toggle, so I'd upvote the feature request on Mozilla Connect too.
2
u/TonyCanHelp 6d ago
Okular has a dark mode with different types (lightness, luma, hue). It's lightweight, open source and available for Windows. But certainly this feature on Firefox would be awesome.
2
u/Training-Panic-3196 7d ago
Agreed, it should be a button. The least painful setup I know until then: in about:config set pdfjs.forcePageColors to true once, then put the colours you like in pdfjs.pageColorsBackground and pdfjs.pageColorsForeground (for example #1e1e1e and #d4d4d4). After that, switching is a double-click on forcePageColors.
If you want a real toggle for reading PDFs on Windows, SumatraPDF has a dark theme and opens files fast. Not a full Acrobat replacement for forms and signing, but for reading it's light and quick.