Skip to content

Commit db42a15

Browse files
NiTRoeSEtechknowlogick
andauthored
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 <[email protected]>
1 parent c01221e commit db42a15

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ generate-images:
545545
convert $(TMPDIR)/images/16.png $(TMPDIR)/images/32.png \
546546
$(TMPDIR)/images/64.png $(TMPDIR)/images/128.png \
547547
$(PWD)/public/img/favicon.ico
548+
convert $(PWD)/public/img/favicon.png -fill white -opaque none $(PWD)/public/img/apple-touch-icon.png
549+
548550
rm -rf $(TMPDIR)/images
549551
$(foreach file, $(shell find public/img -type f -name '*.png'),zopflipng -m -y $(file) $(file);)
550552

public/img/apple-touch-icon.png

8.23 KB
Loading

templates/base/head.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
};
9696
</script>
9797
<link rel="shortcut icon" href="{{StaticUrlPrefix}}/img/favicon.png">
98-
<link rel="apple-touch-icon" href="{{StaticUrlPrefix}}/img/favicon.png">
98+
<link rel="apple-touch-icon" href="{{StaticUrlPrefix}}/img/apple-touch-icon.png">
9999
<link rel="mask-icon" href="{{StaticUrlPrefix}}/img/gitea-safari.svg" color="#609926">
100100
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css">
101101
<link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css">

0 commit comments

Comments
 (0)