johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.26k stars 256 forks source link

Styling tweak specific to dark mode to reduce glare from images/photos #1263

Open nekohayo opened 4 months ago

nekohayo commented 4 months ago

Presuming you are not already doing this… Foliate could use this CSS filter trick (lower brightness, higher contrast?) for images in book contents when using the dark theme mode. It would help reduce glare when scrolling through text that has high-key (bright) photos, at night.

This style rule could be applied at least when the images are not hovered by the mouse.

Essentially, I'm suggesting the same thing as what was implemented in Epiphany, in Tuba and in Firefox ;)

johnfactotum commented 3 months ago

For now you can add the filter in user-stylesheet.css.