如何在不同主题的启动列表和任务栏中显示不同的应用程序图标?

How to show different app icon in jump start list & taskbar for different themes?

我正在开发 UWP 应用程序。当我从 2004 版升级到 20H2 版时,快速启动列表中的应用程序图标发生了变化。在 2004 年,快速启动列表应用程序图标从 targetsize 图标显示。但在 20H2 中,图标似乎是从未电镀的目标大小显示的。这是 Penup 应用程序的示例:

我想显示具有以下要求的浅色和深色主题的应用程序图标:

  1. 浅色和深色主题的不同应用图标。
  2. 对于所有 OS 版本中的特定主题,快速启动列表和任务栏中的图标必须相同。

如何在 windows 10 OS 版本 [从 1803 ~ 20H2] 中实现这一点?

I want to show app icon for light and dark theme with the following requirements:Different app icon for light and dark theme. The icons in jump start list and taskbar have to be same for a specific theme in all OS versions. How can I achieve this in windows 10 OS version [from 1803 ~ 20H2]?

应用程序的图标背景将与 OS 它们的颜色相同,但在 2004 版本中无法更改为其他颜色。但是对于新版本 2004h2,它删除了徽标后面的纯色背板。

Theme-aware tiles in Start – The redesigned Start menu has a more streamlined design that removes the solid color backplates behind the logos in the apps list, and applies a uniform, partially transparent background to the tiles. This design creates a beautiful stage for your icons, especially the Fluent Design icons for Office and Microsoft Edge, as well as the redesigned icons for built-in apps like Calculator, Mail, and Calendar.

更多请参考这个release note