View Single Post
Old 07-02-2025, 02:51 PM   #9
Slevin#7
Connoisseur
Slevin#7 began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2025
Device: iPad
Quote:
Originally Posted by Slevin#7 View Post
... Although Google Play Books grabs the intended image for the dark mode, it will add a light background to it for no reason, making the image a light square and completely unreadable, since the image for the dark mode consists only of white content.

How can I insist Google Play Books to keep their fingers off the image and leave it in original state?
I'll figured out, that setting the background property to transparent with important flag to images with transparency seems to do the trick:
Code:
<img class="transparent" src="../images/diagram.png"/>

.transparent {
  background: transparent !important;
}
Slevin#7 is offline   Reply With Quote