Closed hello-smile6 closed 2 years ago
/gifPlease
/gifPlease
Would a screenshot work?
Yes!
Yes!
Okay.
If you look at the blog post for the native app, you'll notice that the icon fills the entire space. In order to get the same result on the PWA, you'd have to add the purpose: "any maskable"
property for each image in the manifest.
... each icon in the PWA manifest...
Just to clarify, you are using vscode.dev
as PWA?
... each icon in the PWA manifest...
Just to clarify, you are using
vscode.dev
as PWA?
Yes. Here's what I'm saying.
{
"name": "Visual Studio Code",
"short_name": "Code",
"start_url": "/",
"lang": "en-US",
"display": "standalone",
"icons": [
- { "src": "/static/stable/code-192.png", "type": "image/png", "sizes": "192x192" },
- { "src": "/static/stable/code-512.png", "type": "image/png", "sizes": "512x512" },
+ { "src": "/static/stable/code-192.png", "type": "image/png", "sizes": "192x192", "purpose": "any maskable" },
+ { "src": "/static/stable/code-512.png", "type": "image/png", "sizes": "512x512", "purpose": "any maskable" }
]
}
I made an example of how the icon would look that way. Please note that you'd need to add more padding.
Hi @hello-smile6, has the issue been fixed on the latest Insiders?
Checking @rzhao271
@rzhao271 No.
The Insiders icon is actually slightly smaller than the main one.
We are in the process of deploying the fix today so it's not yet available (don't think the bot can verify when it's been released since it's the web version).
@misolori Okay, I'll reinstall the PWA a few times
Deployment is now complete, please try again using https://insiders.vscode.dev/ and remember to uninstall the app from chrome://apps
It doesn't seem to work.
This is what i see when I try this out on a android emulator, the cropping isn't the best but it at least appears to be working:
On Chrome OS, the icon doesn't show with a transparent background. I got an app to show it once, but I since changed that app, so I showed another. Here's a screenshot. I was meaning that it isn't as big as is shown in the blog post originally.
Ah, so we did change it so that the browser apps on Chrome/iOS use the white background and on desktop they use the transparent version so that looks as expected (for some reason it looks better on your screenshot than mine).
Ah, so we did change it so that the browser apps on Chrome/iOS use the white background and on desktop they use the transparent version so that looks as expected (for some reason it looks better on your screenshot than mine).
Oh, would it be possible to somehow have the transparent version?
The VSCode icon doesn't display well on Chrome OS. To fix it, you'd just have to add the
purpose: "any maskable"
property to each icon in the PWA manifest. Could you fix it? Sorry if I'm doing something wrong, I don't know what to do.