izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
106 stars 30 forks source link

Add option to invert color scheme or add dark color scheme (night mode in acrobat viewer) #113

Closed bryandebourbon closed 6 years ago

bryandebourbon commented 8 years ago

(feature request) the option to invert colors would be beneficial for night coding/reading and being consistent with atom's default color scheme

pravin commented 8 years ago

+1

ghost commented 8 years ago

+1 It would be amazing to have this option, specially if you use some pdf document/book to learn to code, or as reference. Please add this one.

Alexis-Martin commented 8 years ago

+1

huberfelix0 commented 8 years ago

+1

adimanea commented 8 years ago

+1 from me as well.

pnjun commented 8 years ago

+1 from me!

aakhmetz commented 8 years ago

+1

MatteoLacki commented 7 years ago

+1

miketrexler commented 7 years ago

I added a pull request for this Night Mode feature: https://github.com/izuzak/atom-pdf-view/pull/178.

Checking the Night Mode setting will invert the colors 100%.

To customize your view a bit further, you can add the following to your Atom stylesheet:

.pdf-view {
  -webkit-filter: invert(88%) !important;
}

Personally I have found a value around 88% to be easiest on the eyes.

Thank you to @PeterNerlich for suggesting this solution: https://github.com/mozilla/pdf.js/issues/8253

izuzak commented 6 years ago

This was added in https://github.com/izuzak/atom-pdf-view/pull/178 -- there's now a night mode config option which does what was suggested in https://github.com/izuzak/atom-pdf-view/issues/113#issuecomment-300301272:

&.night-mode {
   -webkit-filter: invert(100%);
}

Thanks again to @miketrexler :bow: