Automatic Dark/Light Icon Support in Windows Phone 8

前端 未结 5 1700
滥情空心
滥情空心 2021-02-05 08:09

I think this is a very common problem, but I cannot find a suitable solution for me. As you all know, WP supports a dark and a light theme. The user can change the theme and the

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 08:38

    If you want the icon to function like in the actionbar, just be white (if dark theme) and black (if light theme) then you can add the image as an opacity mask to a rectangle, like this:

    
        
            
        
    
    

    Where my.icon.png is a white image, like those you can choose for the actionbar.

提交回复
热议问题