diff --git a/ui/static/bin/maskable-icon-120.png b/ui/static/bin/maskable-icon-120.png new file mode 100644 index 00000000..7f30c5b3 Binary files /dev/null and b/ui/static/bin/maskable-icon-120.png differ diff --git a/ui/static/bin/maskable-icon-192.png b/ui/static/bin/maskable-icon-192.png new file mode 100644 index 00000000..975fc13e Binary files /dev/null and b/ui/static/bin/maskable-icon-192.png differ diff --git a/ui/static/bin/maskable-icon-512.png b/ui/static/bin/maskable-icon-512.png new file mode 100644 index 00000000..c8ee563e Binary files /dev/null and b/ui/static/bin/maskable-icon-512.png differ diff --git a/ui/static_manifest.go b/ui/static_manifest.go index b1a5284d..43489476 100644 --- a/ui/static_manifest.go +++ b/ui/static_manifest.go @@ -27,9 +27,10 @@ func (h *handler) showWebManifest(w http.ResponseWriter, r *http.Request) { } type webManifestIcon struct { - Source string `json:"src"` - Sizes string `json:"sizes"` - Type string `json:"type"` + Source string `json:"src"` + Sizes string `json:"sizes"` + Type string `json:"type"` + Purpose string `json:"purpose"` } type webManifest struct { @@ -63,9 +64,12 @@ func (h *handler) showWebManifest(w http.ResponseWriter, r *http.Request) { ThemeColor: themeColor, BackgroundColor: themeColor, Icons: []webManifestIcon{ - {Source: route.Path(h.router, "appIcon", "filename", "icon-120.png"), Sizes: "120x120", Type: "image/png"}, - {Source: route.Path(h.router, "appIcon", "filename", "icon-192.png"), Sizes: "192x192", Type: "image/png"}, - {Source: route.Path(h.router, "appIcon", "filename", "icon-512.png"), Sizes: "512x512", Type: "image/png"}, + {Source: route.Path(h.router, "appIcon", "filename", "icon-120.png"), Sizes: "120x120", Type: "image/png", Purpose: "any"}, + {Source: route.Path(h.router, "appIcon", "filename", "icon-192.png"), Sizes: "192x192", Type: "image/png", Purpose: "any"}, + {Source: route.Path(h.router, "appIcon", "filename", "icon-512.png"), Sizes: "512x512", Type: "image/png", Purpose: "any"}, + {Source: route.Path(h.router, "appIcon", "filename", "maskable-icon-120.png"), Sizes: "120x120", Type: "image/png", Purpose: "maskable"}, + {Source: route.Path(h.router, "appIcon", "filename", "maskable-icon-192.png"), Sizes: "192x192", Type: "image/png", Purpose: "maskable"}, + {Source: route.Path(h.router, "appIcon", "filename", "maskable-icon-512.png"), Sizes: "512x512", Type: "image/png", Purpose: "maskable"}, }, ShareTarget: webManifestShareTarget{ Action: route.Path(h.router, "bookmarklet"),