Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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

JohnHardmanJohnHardman GBUniversity admin

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

Answers

Sign In or Register to comment.