使任务栏上的应用程序图标具有透明背景 (UWA) [英] Make app icon on task bar have a transparent background (UWA)

查看:26
本文介绍了使任务栏上的应用程序图标具有透明背景 (UWA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个通用 Windows 应用程序,我希望任务栏上的应用程序图标具有透明背景,因此它不在彩色框中.

I am making a Universal Windows App and I want my apps icon on the task bar to have a transparent background so it isn't in a coloured box.

许多微软自己的库存应用程序都是这样的(邮件、照片、Xbox 等),我知道它可以做到,因为我是偶然做到的.但是我使用的图标太大了,当我使用正确大小的图标时,它就停止工作了.我再次尝试使用过大的旧图标,但仍然不起作用.

A lot of Microsoft's own stock apps are like this (Mail, Photos, Xbox etc) and I know it can be done because I did it by accident. But the icons I was using were too big and when I used correct sized ones it stopped working. I've tried using the old too large icons again and it still doesn't work.

在应用程序清单中设置磁贴背景只会使背景成为用户的主题颜色而不是实际透明,所以我必须做其他事情,我所有的 Square 44x44 Logo 资产当然都有透明背景,但我只是得到应该没有任何东西的平铺背景颜色.

Setting the tile background in the apps manifest just makes the background the users theme colour rather than actually transparent so I must of done something else, all of my assets for the Square 44x44 Logo of course have transparent backgrounds but I just get the tile background colour where there should be nothing.

推荐答案

您需要在图标的文件名中使用altform-unplate"限定符.例如:

You need to use the "altform-unplated" qualifier in your icon's filename. For example:

SmallLogo.targetsize-32_altform-unplated.png

如果您真的想要彻底...对于清单中的 Square44x44Logo,对于以下每个目标,您应该有 6 个版本的图标(正常、高对比度黑色和高对比度白色,x3 用于未电镀版本)尺寸:16、20、24、30、32、36、40、48、60、64、80、96 和 256.

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

例如,这里是 256:

For example, here's 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

有很多 PNG.

这篇关于使任务栏上的应用程序图标具有透明背景 (UWA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆