Dark Mode for Sumatra PDF & Colourful Text

Running dark mode SumatraPdf with colourful text
by S3ra Sutan Rajo Ali
update: 22 Sept. 2020

1. Open “Settings”
2. Choose “Advanced Options”
3. Find “TextColor = #000000”
4. Change the value to “TextColor = #ffffff”
5. Find “BackgroundColor = #ffffff”
6. Change the value to “BackgroundColor = #111111”
7. if ever there is “GradientColors = #000000” or with any other value, just DELETE the whole line.

In case you need to vary the colour of the text,
you need to change the value to the hex code of colour you choose.
recommended value for text colour in dark mode is
1. cyan or aqua: TextColor = #00ffff
2. green is: TextColor = #00ff00

Dark Mode for Sumatra PDF
Dark Mode for Sumatra PDF
May 6, 2020

A dark mode for Sumatra PDF is really easy – you just need to tinker with 3 lines of code in the settings.
Why Use Sumatra PDF?

In my opinion, it’s the best PDF reader. It’s small in size, super-fast and doesn’t have any annoying cruft.

Why a Dark Mode (Night Mode)?

If you code for long periods of time, then it’s really great to have your code editor run in dark mode. This greatly reduces the strain on the eyes.

But let’s say you are also following along an e-book, maybe a PDF and you switch to Sumatra PDF. The default setting is black text on white background. Immediately your eyes are shocked with bright luminescent white light. It’s as if you were relaxing in a room with the lights switched off and suddenly someone walked in and abruptly turned the lights on.

As you are coding along you have to switch back and forth multiple times between your PDF reader and code editor. It can be really jarring for the eyes and nerves.
How to Enable Dark Mode?

In Sumatra PDF, click on the Menu -> Settings -> Advanced Options

This should open the SumatraPDF-settings.txt file in your text editor. Change the following 3 lines under the heading FixedPageUI:

TextColor = #eeeeee
BackgroundColor = #111111
GradientColors = #000000

TextColor changes the text color of the PDF document. Background color changes, well the background color of the PDF document. GradientColors will change the background window of Sumatra PDF.