Make the application icon on the taskbar a transparent background (UWA)

I am making a universal application for Windows, and I want the icon of my applications on the taskbar to have a transparent background so that it is not in a colored frame.

Many applications for Microsoftโ€™s own applications are similar to those (Mail, Photos, Xbox, etc.), and I know that this can be done because I did it by accident. But the icons that I used were too large, and when I used the correct sizes, it stopped working. I tried again to use the old icons too big, and it still does not work.

enter image description here

Setting the tile background in the application manifest simply makes the background color of the user theme, not transparent, so I have to do something else, all my assets for the Square 44x44 logo, of course, have a transparent background, but I just get the background color of the tile, where not there should be nothing.

+7
c # windows uwp xaml win-universal-app
source share
1 answer

You need to use the "altform-unplated" qualifier in the icon file name. For example:

SmallLogo.targetsize-32_altform-unplated.png 

If you really want to be thorough ... For Square44x44Logo in your manifest you should have 6 versions of the icon (regular, high contrast black and high contrast white, x3 for unplanned versions) for each of the following purposes sizes: 16, 20, 24, 30, 32 , 36, 40, 48, 60, 64, 80, 96, and 256.

For example, here are 256:

 SmallLogo.targetsize-256.png SmallLogo.targetsize-256_contrast-black.png SmallLogo.targetsize-256_contrast-white.png SmallLogo.targetsize-256_altform-unplated.png SmallLogo.targetsize-256_altform-unplated_contrast-black.png SmallLogo.targetsize-256_altform-unplated_contrast-white.png 

This is a lot of PNG.

+8
source share

All Articles