Basically, I want a viewer which has a night mode or a dark mode so that I can change a pdf with a white background and black text to a dark background and light coloured text.
This method is only for text only documents. Otherwise the image colors will be inverted.
You can install Evince document viewer from this link and open it.Then goto the options on the top right corner as seen in the picture.
Then select Inverted colors. This will help you to read white text on a black background.
I recommend you to go for Okular, one of the best readers for Linux platform. It is free of cost and provides features such as
- Night view mode
- Annotate and Markup tools
- Text extraction from PDF file
- Border trimming, and lot more.
If you're using Compiz WM with "Color filter" plugin installed, you can enable any of several nightmode filters for any windows.
I found all these answer are usefull then finally found this
xcalib -i -a
This inverts all the screen , everywhere. So no need to find if a particular software have this feature or not. I can set a hotkey and now whenever I want dark mode I just need to press the Hotkey, works even for browser.
sudo apt-get install xcalib