PWA Icon File
After a decent amount of research it appears the following conditions determine the PWA icon.
- Browser
- OS
- Version of the OS
- Launcher
- Dark Mode / Lite Mode
- User Preferences
For example. OS: Android 14 Launcher: One UI 6.1 Browser: Firefox
This combination respects the manifest files "background_color": "#fd7e14" line and makes the pwa icon look like this regardless of darkmode settings.
This occurs by pulling a copy of icon-256x256.png
Whereas:
OS: Android 14 Launcher: One UI 6.1 Browser: Chrome Dark Mode: Yes
This occurs by pulling android-chrome-{insert size here} this does allow us to use an SVG to handle a darkmode switch but it can be a bit tricky to get that right.
Another example: OS: Android 14 Launcher: One UI 6.1 Browser: Builtin Samsung Browser Dark Mode: Yes
This one is different from the others in that it completely ignores the android manifest files and will instead search for apple-touch-icon.png and places it on a white background. This is a problem because apple places these images on a black background so one of them will be broken.
Proposal
After checking what some other projects have done to address this problem most of them like mealie appear to change the logo to not use black or white in the logo rather using another color since it will work regardless of the OS and browser. Maybe we should consider switching to another color like the background_color as the logo color.
Like so:
I can upload the illustrator file later for you incase you ever need it.
I wanted thoughts on if we should do this before making a PR. Also this is for the PWA / favicon.
Do you have any suggestions on the color itself?
Im not quite sure which one to pick here are some samples. Ignore the red dot in some of these they are screenshots from illustrator.
| Color | Code | Black | White |
|---|---|---|---|
| Cranberry | b21f24 | ||
| Dark Red | 6c0000 | ||
| Baby Blue | 00b7f1 | ||
| Dark Fusia | b11a51 | ||
| Light Green | 71c063 | ||
| Yellow | efea50 | ||
| Dark Purple | 434380 |
Could you DM this to me on Discord? I can make a post tagging everyone on the discord server.
I think we can put a pin on this for now. I do not plan to change icons right now. Thanks for your work on this!