sumatrapdf
sumatrapdf copied to clipboard
Dark Mode Issue
As you can see in this screenshot. I selected dark mode but the reading background is still white and when I switch it to light mode, the reading background background will be dark. So my question is how can I make the reading background dark in dark mode and why it can make it dark automatically when I switch it to dark mode by itself?
There has been some recent changes in experimental pre-release to allow custom colour choices so depends on the revision
However the canvas inversion setting should be just as easy to flip, so as before, just press i
key.
Ok there does seem to be a problem with light scheme
@kjk in light scheme the inversion is not functioning ? unless colours are reversed !
FixedPageUI [
TextColor = #ffffff
BackgroundColor = #000000
You can press i
which inverts colors and will make document / text match the color.
We don't do it by default because that's not what most people want.
There has been some recent changes in experimental pre-release to allow custom colour choices so depends on the revision However the canvas inversion setting should be just as easy to flip, so as before, just press
i
key.Ok there does seem to be a problem with light scheme
@kjk in light scheme the inversion is not functioning ? unless colours are reversed !
FixedPageUI [ TextColor = #ffffff BackgroundColor = #000000
I set invercolors to true and it get what I wanted but you cannot change the color no matter what. It's like take-or-leave-it kind of option.
As you can see, the color change I made in advanced options doesn't have any effect at all! BTW, check the icons also
Is there any chance of setting colors per theme? I'm using blueprint-style for reading schemas (that helps so much, especially in terms of eye fatigue), but for book reading the green on black is much better. And in other hand watching color printed things like catalogues needs colors to be unchanged. Anytime I need to swap settings file because simple inversion there is not enough.
@ArmanHayots there always has been colour setting and that's why themes are such a problem there is a fixed range of colours between 2 endpoints green and any other
@GitHubRulesOK in my case ability to set text and background colors per theme is more than enough.
As long as I can remember you could have 2 profiles and send a document and page number from one to the other, this does require some customisation by users setting a command and their choice of a name/hotkey, since every user would want their own one of thousands of dark side modes.
Now SumatraPDF pre-release has a few problems with the way it handles commands ! so the current best way is write a cmd file and call it via externalviewers
ExternalViewers [
[
CommandLine = C:\Users\lez\AppData\Local\SumatraPDF\plus\SumatraPDF2.cmd %p %1
Name = Suma&traPDF2
]
]
shortcut is thus ALT +F + T
in that folder alongside the cmd file is another copy of portable sumatraPDF.exe which uses its own settings with different preferences so can be no menu no tabs or simply a different colour setting.
SumatraPDF2.cmd
"C:\Users\lez\AppData\Local\SumatraPDF\plus\SumatraPDF.exe" -page %1 %2
is this to be fixed?
@wdblue34
In theory this issue was handled long ago. there is very little ability in any PDF reader to alter colours unless like Adobe Reader you edit the PDF objects entries. Edge Powered by Acrobat is unlikely to do better unless the full editing DC reader is imbedded.
JavaScript PDF.js readers can do little more than also set foreground and background end points to their colour rendering.
You can press
i
which inverts colors and will make document / text match the color.We don't do it by default because that's not what most people want.
JavaScript PDF.js readers can do little more than also set foreground and background end points to their colour rendering.
On this note, it may be worth looking into Emacs pdf-tools, which uses the OKLab colour space to do true colour remapping (e.g. https://github.com/vedang/pdf-tools/pull/197). In my experience, the results are very good.
Things get even worse. Windows 11, dark mode on.
I believe this issue is resolved by pressing i
to invert colors to match the theme.
If not, please open a new issue is describe what is happening and what you expect to happen.
People also raised other issues but the rule is: one clear problem per issue. Don't add more stuff to existing issues, even if adjacent or similar. Unless it is the exactly same problem, open a new issue.