Bug 403975 - Background color for text selection that relies on system color scheme can produce poor contrast for selected text
Summary: Background color for text selection that relies on system color scheme can pr...
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.6.1
Platform: unspecified Unspecified
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-02-05 21:24 UTC by Laura David Hurka
Modified: 2020-12-10 08:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Selected some text with dark Text Selection Background color (33.38 KB, image/png)
2019-02-05 21:24 UTC, Laura David Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laura David Hurka 2019-02-05 21:24:21 UTC
Created attachment 117846 [details]
Selected some text with dark Text Selection Background color

As described in bug 384267, I suggest to make the Selection Background color of the Text Selection Tool user configurable, and use the system default color only as default. 

The problem is that one can use a dark Selection Background color in the system color scheme, but PDFs also have dark text color. This makes it very hard to check what was selected. (See attachment)

Kate does it fine, because it not only uses Selection Background, but also Selection Text, View Background, and View Text.

So, another option would be to also use Selection Text, instead of just tinting (?) the selection. This way, one could make invisible text visible just by selecting it. (Try that by creating a PDF with some white text on white background, e. g. with Inkscape; then activate Configure -> Accessibility -> Change Colors: Change Paper Color)
Comment 1 Nate Graham 2019-10-07 19:13:04 UTC
Rather than being configurable, maybe it should do something like invert the text color in these circumstances.
Comment 2 Michael D 2020-12-10 08:11:53 UTC
I would be happy with simple inversion. I don't recall exactly, but evince does something like this.

It wouldn't be that bad if Plasma worked well with a light selection color (global color scheme) but it isn't if you use a light color scheme (because certain elements, e.g. the timeout indicator for notifications, becomes impossible to see).