Bug 408511 - Night mode for Okular
Summary: Night mode for Okular
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-10 08:47 UTC by Raphaël Jakse
Modified: 2019-06-10 20:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).