m-khvoinitsky / dark-background-light-text-extension

Firefox addon that turns every page colors into "light text on dark background"
Mozilla Public License 2.0
361 stars 28 forks source link

Images with transparency become unusable #315

Open BrandonStaab opened 3 years ago

BrandonStaab commented 3 years ago

Consider the following site for example: https://www.boost.org/doc/libs/1_60_0/libs/graph/doc/adjacency_list.html

Before:

before

After:

after

One possible solution to make the image viewable would be to invert the colors when a transparent background is detected and inverted mode is enabled. I suspect this isn't a general solution, but it is good enough. It may have unintended consequences too, so I think it should be opt in on a per site basis.

BrandonStaab commented 3 years ago

Related to #6 and #271