Sumatrapdf: Feature request: Dark mode

Created on 1 Oct 2016  路  11Comments  路  Source: sumatrapdfreader/sumatrapdf

Some of us spend many hours in front of PDF documents and it really makes a difference to our eyes to have a dark mode that makes text white and the background black. I tried it in another PDF viewers and even in Chrome reader with Dark Reader extension enabled and my eyes are healthier and more relaxed when it is enabled. It makes reading long documents so much easier.

Most helpful comment

Did you try using the command line option -invert-colors as described in the List of recognized command line options?

There is another issue (#275) about adding a keyboard shortcut to invert colors. This may have some relevant discussion if you are wanting to invert the colors without restarting SumatraPDF with the command line option set.

All 11 comments

Did you try using the command line option -invert-colors as described in the List of recognized command line options?

There is another issue (#275) about adding a keyboard shortcut to invert colors. This may have some relevant discussion if you are wanting to invert the colors without restarting SumatraPDF with the command line option set.

good

Thank you pdgessler, I thought the feature simply didn't exist on sumatrapdf outside of editing the configuration text file to manually change the colors. I use sumatra on windows and -invert-colors added to the shortcut worked fine.

Add nightmode, please. Really really useful. And there are not much light weighted pdf readers with that feature.

closing as dup of #275

I found a better solution for Windows. My setup is all black boarders and black start-up screen and total black in full-screen with white text.

Setting/Advanced Options, add line GradientColors to FixedPageUI then choose your hex color. Here is mine setup for all black and white.

MainWindowBackground = #000000
EscToExit = false
ReuseInstance = false
UseSysColors = false
RestoreSession = true

FixedPageUI [
    TextColor = #ffffff
    BackgroundColor = #000000
    SelectionColor = #f5fc0c
    WindowMargin = 2 4 2 4
    PageSpacing = 4 4
    GradientColors = #000000
]

https://i.stack.imgur.com/vMHOQ.png

Bumping this as the only way to get a 'dark mode' equivalent.

Also doesn't work for epubs, is there a workaround for this?

@spcogg: You can try modifying EbookUI's _TextColor_ and _BackgroundColor_ options, or else set _UseFixedPageUI_ to true to make the settings specified by JJenkx above apply to eBooks as well.

would there be some way to put a dark theme for the interface for example like the image? (it is an image modified with photoshop)
Captura1

@jonbar12
there are several occasions I have allowed windows to mess with the interface colors see some of my answers to the many dark mode requests but at the end of the day (pardon the pun) I remove them as causing other problems within a multiformat application
e.g. see
TextColor in setting file. #1553

Can be this enable with a small button on the tab? Will be very useful to active/deactivate quickly as possible

Was this page helpful?
0 / 5 - 0 ratings