@signalk/app-dock 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
- package/public/app-icon-180.png +0 -0
- package/public/app-icon-maskable.svg +14 -21
- package/public/app-icon.svg +15 -23
package/README.md
CHANGED
|
@@ -148,13 +148,15 @@ The repo ships three cooperating surfaces:
|
|
|
148
148
|
|
|
149
149
|
### Icon assets
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
`public/app-icon.svg` has a transparent background: the artwork sits straight on whatever page shows it, so its colours have to read on light and dark backgrounds alike. Check a change on both before committing.
|
|
152
|
+
|
|
153
|
+
The 180-px apple-touch-icon needs an opaque background, because iOS fills transparency with black, and room for the corners iOS rounds off. Regenerate it from the SVG whenever that changes:
|
|
152
154
|
|
|
153
155
|
```bash
|
|
154
|
-
rsvg-convert -w
|
|
156
|
+
rsvg-convert -w 132 -h 132 public/app-icon.svg | magick - -background '#0f172a' -gravity center -extent 180x180 -alpha remove -alpha off PNG24:public/app-icon-180.png
|
|
155
157
|
```
|
|
156
158
|
|
|
157
|
-
`public/app-icon-maskable.svg` is
|
|
159
|
+
`public/app-icon-maskable.svg` is hand-authored: the same artwork on the same dark slate, scaled into Android's 80% safe zone. Update it by hand when the artwork changes.
|
|
158
160
|
|
|
159
161
|
## License
|
|
160
162
|
|
package/package.json
CHANGED
package/public/app-icon-180.png
CHANGED
|
Binary file
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<rect x="
|
|
11
|
-
<rect x="
|
|
12
|
-
<rect x="
|
|
13
|
-
<rect x="
|
|
14
|
-
<rect x="
|
|
15
|
-
<circle cx="36" cy="
|
|
16
|
-
<circle cx="36" cy="22" r="10" fill="none" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1"/>
|
|
17
|
-
<line x1="36" y1="14" x2="36" y2="18" stroke="#ffffff" stroke-opacity="0.3" stroke-width="1" stroke-linecap="round"/>
|
|
18
|
-
<line x1="36" y1="26" x2="36" y2="30" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
19
|
-
<line x1="28" y1="22" x2="32" y2="22" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
20
|
-
<line x1="40" y1="22" x2="44" y2="22" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
21
|
-
<polygon points="36,15 34,22 36,20 38,22" fill="#ef4444" fill-opacity="0.7"/>
|
|
22
|
-
<polygon points="36,29 34,22 36,24 38,22" fill="#ffffff" fill-opacity="0.25"/>
|
|
2
|
+
<rect width="100" height="100" fill="#0f172a"/>
|
|
3
|
+
<g transform="translate(22 22) scale(0.7778)">
|
|
4
|
+
<circle cx="36" cy="16" r="11" fill="none" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5"/>
|
|
5
|
+
<line x1="36" y1="3" x2="36" y2="7" stroke="#3b82f6" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
<line x1="23" y1="16" x2="27" y2="16" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5" stroke-linecap="round"/>
|
|
7
|
+
<line x1="45" y1="16" x2="49" y2="16" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5" stroke-linecap="round"/>
|
|
8
|
+
<polygon points="36,8 33,16 36,14 39,16" fill="#ef4444"/>
|
|
9
|
+
<polygon points="36,24 33,16 36,18 39,16" fill="#64748b"/>
|
|
10
|
+
<rect x="3" y="44" width="66" height="22" rx="11" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="1.5"/>
|
|
11
|
+
<rect x="9" y="49" width="12" height="12" rx="3" fill="#3b82f6"/>
|
|
12
|
+
<rect x="30" y="49" width="12" height="12" rx="3" fill="#10b981"/>
|
|
13
|
+
<rect x="51" y="49" width="12" height="12" rx="3" fill="#f59e0b"/>
|
|
14
|
+
<rect x="27" y="29" width="18" height="18" rx="4.5" fill="#10b981"/>
|
|
15
|
+
<circle cx="36" cy="69.5" r="2" fill="#3b82f6"/>
|
|
23
16
|
</g>
|
|
24
17
|
</svg>
|
package/public/app-icon.svg
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="72" height="72">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
2
|
+
<!-- Transparent background: the artwork is drawn straight on the canvas in
|
|
3
|
+
mid-tone colours that read on light and dark pages alike -->
|
|
4
|
+
<!-- Compass rose -->
|
|
5
|
+
<circle cx="36" cy="16" r="11" fill="none" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5"/>
|
|
6
|
+
<line x1="36" y1="3" x2="36" y2="7" stroke="#3b82f6" stroke-width="1.5" stroke-linecap="round"/>
|
|
7
|
+
<line x1="23" y1="16" x2="27" y2="16" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5" stroke-linecap="round"/>
|
|
8
|
+
<line x1="45" y1="16" x2="49" y2="16" stroke="#3b82f6" stroke-opacity="0.7" stroke-width="1.5" stroke-linecap="round"/>
|
|
9
|
+
<polygon points="36,8 33,16 36,14 39,16" fill="#ef4444"/>
|
|
10
|
+
<polygon points="36,24 33,16 36,18 39,16" fill="#64748b"/>
|
|
10
11
|
<!-- Dock pill -->
|
|
11
|
-
<rect x="
|
|
12
|
+
<rect x="3" y="44" width="66" height="22" rx="11" fill="#3b82f6" fill-opacity="0.15" stroke="#3b82f6" stroke-width="1.5"/>
|
|
12
13
|
<!-- Dock icons - 3 squares in the pill -->
|
|
13
|
-
<rect x="
|
|
14
|
-
<rect x="
|
|
15
|
-
<rect x="
|
|
14
|
+
<rect x="9" y="49" width="12" height="12" rx="3" fill="#3b82f6"/>
|
|
15
|
+
<rect x="30" y="49" width="12" height="12" rx="3" fill="#10b981"/>
|
|
16
|
+
<rect x="51" y="49" width="12" height="12" rx="3" fill="#f59e0b"/>
|
|
16
17
|
<!-- Middle icon magnified (popping up) -->
|
|
17
|
-
<rect x="
|
|
18
|
+
<rect x="27" y="29" width="18" height="18" rx="4.5" fill="#10b981"/>
|
|
18
19
|
<!-- Active dot under middle icon -->
|
|
19
|
-
<circle cx="36" cy="
|
|
20
|
-
<!-- Compass rose hint -->
|
|
21
|
-
<circle cx="36" cy="22" r="10" fill="none" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1"/>
|
|
22
|
-
<line x1="36" y1="14" x2="36" y2="18" stroke="#ffffff" stroke-opacity="0.3" stroke-width="1" stroke-linecap="round"/>
|
|
23
|
-
<line x1="36" y1="26" x2="36" y2="30" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
24
|
-
<line x1="28" y1="22" x2="32" y2="22" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
25
|
-
<line x1="40" y1="22" x2="44" y2="22" stroke="#ffffff" stroke-opacity="0.15" stroke-width="1" stroke-linecap="round"/>
|
|
26
|
-
<!-- Compass needle -->
|
|
27
|
-
<polygon points="36,15 34,22 36,20 38,22" fill="#ef4444" fill-opacity="0.7"/>
|
|
28
|
-
<polygon points="36,29 34,22 36,24 38,22" fill="#ffffff" fill-opacity="0.25"/>
|
|
20
|
+
<circle cx="36" cy="69.5" r="2" fill="#3b82f6"/>
|
|
29
21
|
</svg>
|