Add maskable icons

This commit is contained in:
Karina Kwiatek 2023-01-21 18:16:24 +01:00
parent 73082975c4
commit b9269f0693
17 changed files with 4 additions and 2 deletions

View File

@ -39,8 +39,10 @@ class ManifestsController < ApplicationController
def webapp_icons
%i[1024 512 384 192 128 96 72 48].map do |size|
[
{ src: "/icons/icon_x#{size}.webp", sizes: "#{size}x#{size}", type: "image/webp" },
{ src: "/icons/icon_x#{size}.png", sizes: "#{size}x#{size}", type: "image/png" }
{ src: "/icons/icon_x#{size}.webp", sizes: "#{size}x#{size}", type: "image/webp", purpose: "any" },
{ src: "/icons/icon_x#{size}.png", sizes: "#{size}x#{size}", type: "image/png", purpose: "any" },
{ src: "/icons/maskable_icon_x#{size}.webp", sizes: "#{size}x#{size}", type: "image/webp", purpose: "maskable" },
{ src: "/icons/maskable_icon_x#{size}.png", sizes: "#{size}x#{size}", type: "image/png", purpose: "maskable" }
]
end.flatten
end

View File

View File

View File

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

View File

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

View File

View File

View File

View File

View File

View File