Re: [w3c/manifest] Add support for defining a theme color for both light & dark modes (prefers color scheme) (#975)

@tomayac wrote:
> There's some duplication with the "shortcuts", but I think it's tolerable

I'm not liking the duplication of shortcuts, TBH. I wonder if we can do better there... it looks like image resources should sprout at `media` member?

```JSON
{"shortcuts": [
    {
        "name": "Play",
        "short_name": "Play",
        "description": "Play the list of podcasts",
        "url": "/play?utm_source=homescreen",
        "icons": [
            {
                "media": "(prefers-color-scheme: light)",
                "src": "/icons/play-light.png",
                "sizes": "192x192"
            },
            {
                "media": "(prefers-color-scheme: dark)",
                "src": "/icons/play-dark.png",
                "sizes": "192x192"
            }
        ]
    }
]}
```






-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/975#issuecomment-852784905

Received on Wednesday, 2 June 2021 06:49:02 UTC