0
votes

I have generated the assets for my uwp app using the Assets Generator (which is inside the Package.appxmanifest) and also using this extention. It generates files OK. However when i see the icons, they are centered. Like this (the icon on the right of Settings) where you can barely see anything. The quality of the icon is better than it is showed here, and the quality of the icon is good. So the problem is that the icon is centered in the rectangle. I want it to stretch over all its rectangle. Like:this. (it does not need to stretch to 2 rectangles as in this photo.)

How can i do this?

Edit: Perhaps the question was not clear. I want to remove the padding from the icon. Let me give you another example that may be more clear. In the taskbar. I have my logo here, with padding outside. I want it to stretch so there is no padding.I want my logo to be the size of the actual container.

1

1 Answers

1
votes

Stretching the icon to 2 rectangles has nothing to do with the developer. You as a developer do not have any control over that. The user can right click the tiles and select the size of the tile, if they select it to be medium size, it will take space of 2 rectangles if small then only 1 and if large size is selected it take size of 4 rectangles.

In the image below you can see I have opened the context menu on the SMicrosoft Store tile and its selected size is currently Wide which is why it is currently taking 2 squares ( or rectangles ) and I can change its size to small, Medium or Large as well, this is all done at the user end after they have installed your app.

sample image

If you want to remove extra padding around your assets: when you generate assets with the built in asset generator of the manifest there is a checkbox "add recommended padding" uncheck it and you will have the desired result.