-
Notifications
You must be signed in to change notification settings - Fork 18k
x/website: high-res favicon for system integration #57899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @golang/tools-team |
Here is my suggestion, I can turn it into a PR after discussion. I looked at a few guides 1, 2, 3, 4, 5 I propose to add 3 image files and 3 lines of HTML, to fit for most popular OS and browsers.
To test what the change would look like, I created color variations for each resources and uploaded 5 static sites to an 5 HTTPS servers.
The goal is to verify that all modern system correctly take into account either the SVG (best) or the high-res PNG (second best). The static websites are name a, ab, ac, bc, abc, reflecting which resources they contain out of A, B, C. ResultsChrome (OSX)TabsChromes "sees" all of the favicon resource types. It correctly prefers SVG when available, then PNG, then ICO. Docka, ab, ac, bc, abc The Dock shortcut correctly displays the SVG. It does not properly handles the high-res PNG, though. Firefox (OSX)TabsFirefox "sees" all of the favicon resource types. It correctly prefers SVG when available, then PNG, then ICO. Safari (OSX)TabsSafari does not support SVG favicons. It does support the high-res PNG. iPhone 7 (iOS 15.7)Home screenICO and SVG not supported as home screen shortcut icons. The transparent PNG background turned black, so instead we'll need a distinct file iPad Pro (iOS 15.7)Safari tabsSVG not supported. Home screenICO and SVG not supported as home screen shortcut icons. The transparent PNG background turned black, so instead we'll need a distinct file Android 12 (Samsung Galaxy S10)Home screenICO not supported. PNG takes precedence over SVG, for some reason. Android 13 (Pixel 5)Home screenICO not supported. PNG takes precedence over SVG, for some reason. |
CC @jamalc -- looks good to me. Thank you for doing such diligent investigation! |
Change https://go.dev/cl/476975 mentions this issue: |
What did you do?
The use case is "Open the online playground as if it was a standalone app".
In Google Chrome (desktop), there is a very nice feature "Create Shortcut". Its creates an shortcut for the OS window manager, that opens the website in its own window, as if it were an app.
⋮
(kebab button) > More Tools > Create Shortcut...It is very well integrated with OSX. Not so much with Ubuntu. YMMV.
What did you expect to see?
A new Gopher icon shows up in my dock (I'm on OSX)
What did you see instead?
A new Gopher icon shows up in my dock, but it is blurry.
In my screenshot,
I suggest we fix this with either a high-res raster favicon, or a vector favicon.
The text was updated successfully, but these errors were encountered: