简体   繁体   中英

Color tiles in Windows 10 desktop apps

I noticed with the first big Windows 10 update that some desktop apps have tiles in a different color than the one I have for accent color, like Firefox, which has a dark-gray tile color:

火狐浏览器

However, not all apps have this, and use the default accent color, like Blender.

搅拌机

I wonder if this change is similar to what Windows 8.1 did with an updated Start screen, in which you could set the color of a desktop app tile via XML .

I'm a novice with the Windows platforms in C#, and I think it would be nice to implement in my programs a more customized tile on the start screen, but I don't know how.

In a UWP app, you can set the tile background color in the app manifest, eg:

<uap:VisualElements
  DisplayName="MyApp"
  Square150x150Logo="Assets\Square150x150Logo.png"
  Square44x44Logo="Assets\Square44x44Logo.png"
  Description="MyApp description"
  BackgroundColor="#ffff00">
  ...
  <uap:SplashScreen
    Image="Assets\SplashScreen.png"
    BackgroundColor="#ff0000" />
</uap:VisualElements>

This sets the tile background to yellow, and independently sets the splash screen background to red.

For a desktop app, this link is likely more useful .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM