~dricottone/huttese-apk

ref: 21f8977540db0160d43ea0c995807737f0f6a5c2 huttese-apk/sr.ht/gamja/0001-Add-sourcehut-branding-to-chat.sr.ht.patch -rw-r--r-- 2.0 KiB
21f89775 — Simon Ser soju: upgrade 2 years ago
                                                                                
d1e4e603 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From 9ee590d59f68d5ab4f9c8c8a928aea21d8eaffa5 Mon Sep 17 00:00:00 2001
From: Tmpod <tmpod@pm.me>
Date: Mon, 29 Nov 2021 21:27:29 +0000
Subject: [PATCH gamja] Add sourcehut branding to chat.sr.ht

Add "chat.sr.ht" title, to be improved with a gamja patch (for smarter
titles).
Add SVG favicon of sourcehut's white logo.
---
 favicon.svg   |  1 +
 index.html    |  3 ++-
 manifest.json | 12 ++++++++++--
 3 files changed, 13 insertions(+), 3 deletions(-)
 create mode 100644 favicon.svg

diff --git a/favicon.svg b/favicon.svg
new file mode 100644
index 0000000..e94113c
--- /dev/null
+++ b/favicon.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M256 26C128.944 26 26 128.944 26 256s102.944 230 230 230 230-102.944 230-230S383.056 26 256 26Zm0 415.484C153.52 441.484 70.516 358.48 70.516 256S153.52 70.516 256 70.516 441.484 153.52 441.484 256 358.48 441.484 256 441.484z"/></svg>
diff --git a/index.html b/index.html
index 455a6f2..e957e78 100644
--- a/index.html
+++ b/index.html
@@ -3,11 +3,12 @@
 	<head>
 		<meta charset="utf-8">
 		<meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'none'; object-src 'none'; connect-src *;">
-		<title>gamja IRC client</title>
+		<title>chat.sr.ht</title>
 		<link rel="stylesheet" href="./style.css">
 		<script type="module" src="./main.js"></script>
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<link rel="manifest" href="manifest.json">
+		<link rel="icon" type="image/svg+xml" href="favicon.svg">
 	</head>
 	<body>
 		<noscript>
diff --git a/manifest.json b/manifest.json
index 37ea9bc..abda399 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,15 @@
 {
-	"name": "gamja IRC client",
+	"name": "chat.sr.ht",
 	"short_name": "gamja",
 	"start_url": ".",
 	"display": "standalone",
-	"scope": "."
+	"scope": ".",
+	"icons": [
+		{
+			"src": "favicon.svg",
+			"sizes": "512x512",
+			"type": "image/svg+xml",
+			"purpose": "any"
+		}
+	]
 }
-- 
2.34.1