-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invert document colors (night mode) #8253
Comments
Please re-open. Night mode refers specifically to |
Please re-open. Something like |
Thanks for the CSS rule. Since it seems this feature is not going to make it to PDF.js anytime soon, I saved it as a bookmarklet. If anybody is interested:
It creates a new stylesheet element with the right rule, and toggle it (removing or re-adding it) if applied again. |
[Feature Request]
Configuration:
The systems default PDF viewer has this handy feature inverting the colors of the document, which I use all the time as it is considerably more convenient, especially at night. To my understanding, this should be very easy to implement, as it required no more than applying
filter: invert();
to the.pdfViewer .page
and maybe inverting the border image again.It would also be handy to have the keyboard shortcut [Ctrl] + [I] for it, as it is used in the systems viewer.
The text was updated successfully, but these errors were encountered: