Improve support for favicon and PWA icons

This commit is contained in:
itepechi 2023-09-26 08:55:35 +09:00
parent 2e983ff79c
commit db16459e4d
7 changed files with 19 additions and 1 deletions

View File

@ -339,6 +339,24 @@ config :pleroma, :manifest,
type: "image/png",
sizes: "512x512",
purpose: "any"
},
%{
src: "/static/icon-192.png",
type: "image/png",
sizes: "192x192",
purpose: "any"
},
%{
src: "/static/icon-maskable-512.png",
type: "image/png",
sizes: "512x512",
purpose: "maskable"
},
%{
src: "/static/icon-maskable-192.png",
type: "image/png",
sizes: "192x192",
purpose: "maskable"
}
],
theme_color: "#d6cec7",

View File

@ -25,7 +25,7 @@ defmodule Pleroma.Constants do
const(static_only_files,
do:
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.png schemas doc)
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.ico favicon.png schemas doc)
)
const(status_updatable_fields,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
priv/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
priv/static/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB