Skip to content

Commit 58407fc

Browse files
committed
improve icon and theme colors
1 parent 67e32a2 commit 58407fc

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

frontend/assets/favicon.svg

Lines changed: 22 additions & 1 deletion
Loading

frontend/assets/manifest.tmpl.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
{
22
"name": "Shuthost Coordinator",
33
"short_name": "shuthost",
4-
"start_url": "/index.html",
4+
"start_url": "/",
55
"display": "standalone",
6-
"background_color": "#ffffff",
7-
"theme_color": "#4CAF50",
6+
"background_color": "#0f1720",
7+
"theme_color": "#0b6b3a",
88
"description": "{ description }",
99
"icons": [
1010
{
1111
"src": "/favicon.svg",
1212
"sizes": "any",
13-
"type": "image/svg+xml"
13+
"type": "image/svg+xml",
14+
"purpose": "monochrome maskable"
15+
}
16+
]
17+
,
18+
"shortcuts": [
19+
{
20+
"name": "Hosts",
21+
"description": "Open the Hosts view to see and manage registered hosts",
22+
"url": "#hosts"
23+
},
24+
{
25+
"name": "Clients",
26+
"description": "Open the Clients view to see and manage registered clients",
27+
"url": "#clients"
1428
}
1529
]
1630
}

frontend/assets/partials/html_head.tmlp.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<title>{ title }</title>
44
<meta name="viewport" content="width=device-width, initial-scale=1.0">
55
<meta name="description" content="{ description }">
6-
<meta name="theme-color" content="#4CAF50">
6+
<!-- Theme-color for light and dark modes. Browsers that support media on meta
7+
tags will pick the appropriate color. -->
8+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#0b6b3a">
9+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2ec164">
10+
<!-- Background color meta (some browsers / PWAs respect this) -->
11+
<meta name="background-color" media="(prefers-color-scheme: light)" content="#0f1720">
12+
<meta name="background-color" media="(prefers-color-scheme: dark)" content="#0b0f12">
713
<link rel="manifest" href="./manifest.json">
814
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
915
<link rel="stylesheet" href="./styles.css">

0 commit comments

Comments
 (0)