View Single Post
Old 06-13-2025, 01:53 PM   #5
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,825
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Slevin#7 View Post
This is great advice, many thanks. I'd have to make some smaller additional changes since pure white is too much of a contrast, but modern CSS filter might be a viable way.
Employ "filter: invert(0.8)"

Quote:
Now, let me ask the 1 million dollar question: what will Kindle do? Is Kindle able to manage media queries and modern CSS like "filter: invert" etc.?
Kindle doesn't support transparent .png so you can't apply "filter: invert(x)" on them. Even if Kindle were to support "@media(prefers-color-scheme: dark)," there's no way to take advantage of this unless you use .jpg images with a white background and black colors for light mode, and images with a black background and white colors for dark mode, with the former showing and the latter hiding. But that's not a acceptable solution either.

Quote:
And what about the other usual readers, can they handle this solution, or might it still bebetter to provide 2 distinct images for light and dark?
AFAIK, so far none of the e-readers can adequately handle code that allows images to adapt to the user's display mode. Your only option is to work in epub3, using JS to detect the background color, and then display .pgn files that adapt to that background color.
RbnJrg is offline   Reply With Quote