LoganMeitz / votefinder

GNU General Public License v3.0
2 stars 2 forks source link

Vote image is unreadable on dark backgrounds #8

Closed movexig closed 10 months ago

movexig commented 1 year ago

Many users use SA in dark mode. The black-on-transparent votecount image is almost unreadable in dark mode.

I've tried a couple of variants, but the quickest fix would be to just not have the background image transparent, but a solid color instead. Another alternative is to attempt some kind of light outline around text (which is doable with Pillow just fine).

rjmagley commented 1 year ago

A solid color is probably best for now. Pretty sure I can fix this today.

rjmagley commented 1 year ago

it would be hilarious if we instead generated SVG images and used some trickery to just invert the text color

I don't think we should but, again, amusing

rjmagley commented 1 year ago

So I definitely didn't fix this a week ago, but I sure will start on it now.

This might also be a nice opportunity to take all this image-drawing code out of views.py to tidy it up a bit, get all the related code in one .py file - IIRC there are like three or four functions called to make the image, and they're all distributed throughout views.py. May as well organize them into one location to make it easier to work on this stuff later.

rjmagley commented 12 months ago

I think this is fixed with this PR, we'll want to test it to be sure

rjmagley commented 10 months ago

Fixed alongside everything else in pillow-10-update.