diff options
author | NiTRoeSE <michael.schunk@medialyse-photography.de> | 2020-01-29 03:03:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 21:03:39 -0500 |
commit | db42a15fa01b27fce2ff792fa26365edeae1894d (patch) | |
tree | ce984cc978e7ba94a6a008130f7a60f4fa4ba120 | |
parent | c01221e70fc71f5bcff5f699095fbcbfc1e2b4a3 (diff) | |
download | gitea-db42a15fa01b27fce2ff792fa26365edeae1894d.tar.gz gitea-db42a15fa01b27fce2ff792fa26365edeae1894d.zip |
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>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | public/img/apple-touch-icon.png | bin | 0 -> 8430 bytes | |||
-rw-r--r-- | templates/base/head.tmpl | 2 |
3 files changed, 3 insertions, 1 deletions
@@ -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);) diff --git a/public/img/apple-touch-icon.png b/public/img/apple-touch-icon.png Binary files differnew file mode 100644 index 0000000000..6cf87e0f3a --- /dev/null +++ b/public/img/apple-touch-icon.png diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 496e2e67af..440dd3e5e2 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -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"> |