Bug 408511

Summary: Night mode for Okular
Product: [Applications] okular Reporter: Raphaël Jakse <raphael.kde>
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: aacid, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Raphaël Jakse 2019-06-10 08:47:01 UTC
Hello,

Since this is becoming a popular everywhere, a night mode for Okular would be nice. It is actually possible to achieve that for many PDFs going to Settings, accessibility, check Modify colors, choose Invert color.

I feel this might be a popular setting that could go in the "Show" menu. It would not really be night mode, but "Invert colors" is probably clear enough. I thing going all the way to the accessibility setting (and discovering it) is less than ideal. I also think many people do not see it as an accessibility feature but as a preference.

What do you think?

(See also this Ask Ubuntu post, second result for "Okular night mode" in DuckDuckGo https://askubuntu.com/questions/472540/is-there-a-pdf-reader-allowing-me-to-change-background-color-of-arxiv-pdfs)
Comment 1 Laura David Hurka 2019-06-10 10:12:00 UTC
Hi,

I thought this is a duplicate of some other bug, but don’t find it now.

I already thought about this, see https://phabricator.kde.org/D21195
Maybe continuing work soon.

A night mode would probably be Invert Luma instead of Invert Colors, to preserve colors. If you want to experiment, the color modification code is in ui/pageview.cpp:361 (// 4B.2. modify pixmap following accessibility settings).