Procházet zdrojové kódy

add touch-icon with background (#10022)

* add touch-icon with background

...to prevent ugly glitch while minimize app to homescreen

* add / generate apple-touch-icon

* run make command

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
tags/v1.10.5
NiTRoeSE před 4 roky
rodič
revize
db42a15fa0
Žádný účet není propojen s e-mailovou adresou tvůrce revize
3 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 2
    0
      Makefile
  2. binární
      public/img/apple-touch-icon.png
  3. 1
    1
      templates/base/head.tmpl

+ 2
- 0
Makefile Zobrazit soubor

@@ -545,6 +545,8 @@ generate-images:
convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \
$(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \
$(PWD)/public/img/favicon.ico
convert $(PWD)/public/img/favicon.png -fill white -opaque none $(PWD)/public/img/apple-touch-icon.png
rm -rf $(TMPDIR)/images
$(foreach file, $(shell find public/img -type f -name '*.png'),zopflipng -m -y $(file) $(file);)


binární
public/img/apple-touch-icon.png Zobrazit soubor


+ 1
- 1
templates/base/head.tmpl Zobrazit soubor

@@ -95,7 +95,7 @@
};
</script>
<link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png">
<link rel="apple-touch-icon" href="{{StaticUrlPrefix}}/img/favicon.png">
<link rel="apple-touch-icon" href="{{StaticUrlPrefix}}/img/apple-touch-icon.png">
<link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css">

Načítá se…
Zrušit
Uložit