Skip to content

Commit db501aa

Browse files
tmmampagent
andauthored
feat(zbugs-swift): an app icon that follows light and dark mode (#114)
The Zero logo from zero.rocicorp.dev, as an Icon Composer document for iOS 26 and macOS 26: its dark mark on white in light mode, its light mark on black in dark mode, and a white mark for tinted icons. An asset catalog icon drawn on the old macOS grid was shrunk onto a grey plate in the macOS 26 Dock; the .icon file takes the system's shape. Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859 Co-authored-by: Amp <amp@ampcode.com>
1 parent 804eef4 commit db501aa

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"fill-specializations": [
3+
{
4+
"value": {
5+
"solid": "srgb:1.00000,1.00000,1.00000,1.00000"
6+
}
7+
},
8+
{
9+
"appearance": "dark",
10+
"value": {
11+
"solid": "srgb:0.00000,0.00000,0.00000,1.00000"
12+
}
13+
},
14+
{
15+
"appearance": "tinted",
16+
"value": {
17+
"solid": "srgb:0.00000,0.00000,0.00000,1.00000"
18+
}
19+
}
20+
],
21+
"groups": [
22+
{
23+
"layers": [
24+
{
25+
"fill-specializations": [
26+
{
27+
"value": {
28+
"solid": "srgb:0.11765,0.11765,0.11765,1.00000"
29+
}
30+
},
31+
{
32+
"appearance": "dark",
33+
"value": {
34+
"solid": "srgb:0.88235,0.88235,0.88235,1.00000"
35+
}
36+
},
37+
{
38+
"appearance": "tinted",
39+
"value": {
40+
"solid": "srgb:1.00000,1.00000,1.00000,1.00000"
41+
}
42+
}
43+
],
44+
"image-name": "zero.svg",
45+
"name": "zero"
46+
}
47+
],
48+
"shadow": {
49+
"kind": "neutral",
50+
"opacity": 0.5
51+
},
52+
"translucency": {
53+
"enabled": false,
54+
"value": 0.5
55+
}
56+
}
57+
],
58+
"supported-platforms": {
59+
"squares": "shared"
60+
}
61+
}

‎apps/zbugs-swift/App/project.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ targets:
1818
testTargets: [ZBugsUITests]
1919
sources:
2020
- path: ZBugsApp.swift
21+
# The app icon (Icon Composer): the Zero logo from zero.rocicorp.dev.
22+
- path: AppIcon.icon
2123
- path: Info.plist
2224
buildPhase: none
2325
dependencies:
@@ -32,6 +34,7 @@ targets:
3234
SWIFT_VERSION: '6.0'
3335
GENERATE_INFOPLIST_FILE: YES
3436
INFOPLIST_FILE: Info.plist
37+
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
3538
INFOPLIST_KEY_CFBundleDisplayName: Zero Bugs
3639
INFOPLIST_KEY_UILaunchScreen_Generation: YES
3740
INFOPLIST_KEY_UIApplicationSceneManifest_Generation: YES

0 commit comments

Comments
 (0)