How to set variant of App Icon depend of Windows Theme (Dark or White theme) ?

Mysterious_Dev 46 Reputation points
2023-04-24T07:26:44.73+00:00

Hi ! I wanted to know, is it possible to set different variant of an app icon for dark or white theme (like Microsoft Store or Sticky Notes) with Windows App SDK ?

Windows development | Windows App SDK
{count} votes

Accepted answer
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2023-04-25T03:00:39.49+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Set in Package.appxmanifest.

    According to Complete list of icons and variations,

    Separate files for all three theme variations (default, light theme, dark theme) are required, even if the icon is the same.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.