TemplateStudio
TemplateStudio copied to clipboard
Review WTS WinUI icon used in vstemplates
Our WinUI template icons are showing pixeled in the new item dialog, we'll need to review we provide all the required sizes.
Originally posted by @sibille in https://github.com/microsoft/WindowsTemplateStudio/issues/4164#issuecomment-806559552
we'll need to review we provide all the required sizes.
Where was the source of the advice to provide a .ico file with 9 different size images in it?
I know the generated projects include these icon files but my understanding is that they only ever render as 64x64 and 48x48 inside VS2019. The ico files that have been added are significantly bigger than a single 64x64 png would be.
We created the same image sizes as provided for the WinUI .ico in Project reunion which solved the problem on the new item dialog.
Add New Item Dialog with 256x256 png icon
vs
Add New Item Dialog with .ico icon
With a single 64x64 png the icon looks pixeled but will follow up to see if all sizes are required.
Both of the images above show some pixelation. What does each image show?
The images show the new item dialog with the .png icon vs the .ico icon.
The images show the new item dialog with the .png icon vs the .ico icon.
which is which? what size png image?
Having just debugged the UI definitions. It's defined as a 32x32 image for the Medium size. My machine running at 200% scale sees it rendered as 64x64. My guess is that the automatic scaling of PNGs in this instance is not as good as it could be for this image. The definition for the Small icon size is 16x16 but these are not being rendered on my machine (VS16.9.4)
I still don't see the need to include all 9 different sizes in the ico file.
which is which? what size png image?
Added the info in the comment above https://github.com/microsoft/WindowsTemplateStudio/issues/4168#issuecomment-833376546. The original png file was 256x256.
Moving to milestone 4.1 while following up internally on more guidance on this