How to efficiently handle icons with switching between light and dark themes?

JohnHardmanJohnHardman GBUniversity mod

I will probably allow users to switch my app's colors, whether by using themes or otherwise.

At the moment, my icons are designed to work on a light colored background, so typically have dark pixels with transparent cells around them.
When the user switches the theme to a dark background, I either need my icons to adapt (although I suspect that would be horribly slow) or to switch to a second set of icons that use light colored pixels with transparent cells around them.

What method have people found of doing this efficiently, ideally using binding, but ideally not overlaying two images and switching IsVisible (I don't want the overhead of loading two of every image if the user never changes colors) ?

Best Answers


Sign In or Register to comment.