Skip to content

The agent that grows with you

fix(icons): give the macOS 26 icon its mono annotation for Clear and Tinted

ethernet02ed9f264902
diff --git a/apps/desktop/assets/icon.icon/icon.json b/apps/desktop/assets/icon.icon/icon.json
index e3d68e39a4d..783b1471317 100644
--- a/apps/desktop/assets/icon.icon/icon.json
+++ b/apps/desktop/assets/icon.icon/icon.json
@@ -35,6 +35,10 @@
{
"appearance": "dark",
"value": "border-dark.png"
+ },
+ {
+ "appearance": "tinted",
+ "value": "border-dark.png"
}
],
"glass": false,
@@ -49,6 +53,10 @@
{
"appearance": "dark",
"value": "art-dark.png"
+ },
+ {
+ "appearance": "tinted",
+ "value": "art-dark.png"
}
],
"glass": false,
diff --git a/scripts/generate_icons.py b/scripts/generate_icons.py
index 06c0be37036..1fdc86cf5fc 100644
--- a/scripts/generate_icons.py
+++ b/scripts/generate_icons.py
@@ -565,11 +565,15 @@ def icon_manifest(art: IconArt) -> str:
# No fixed "image-name": actool treats it as the image for every
# appearance and drops the specializations, so the dark variant would
# never reach Assets.car (black girl on the dark fill).
+ # "tinted" is the single mono annotation behind Clear light/dark and
+ # Tinted light/dark: the system reads luminance as visibility and
+ # tints it, so those modes need the white ink, not the black.
return {
"name": name,
"image-name-specializations": [
{"value": f"{name}-light.png"},
{"appearance": "dark", "value": f"{name}-dark.png"},
+ {"appearance": "tinted", "value": f"{name}-dark.png"},
],
"glass": False,
"hidden": False,
diff --git a/tests/scripts/test_icon_flavors.py b/tests/scripts/test_icon_flavors.py
index dd03e651213..0ab041dbfcc 100644
--- a/tests/scripts/test_icon_flavors.py
+++ b/tests/scripts/test_icon_flavors.py
@@ -240,12 +240,15 @@ def manifest_fills(package):
fills[spec.get("appearance", "light")] = tuple(float(v) for v in channels.split(","))[:3]
layers = [layer for group in manifest["groups"] for layer in group["layers"]]
# A fixed "image-name" makes actool ignore the per-appearance images, so
- # every layer must pick its image through specializations only, and each
- # must carry a dark one — otherwise dark mode shows the black girl on the
- # dark fill.
+ # every layer must pick its image through specializations only, with a
+ # dark one (else dark mode shows the black girl on the dark fill) and a
+ # tinted one — the mono annotation behind Clear and Tinted, which the
+ # system reads as luminance, so it must be the white ink.
assert not any("image-name" in layer for layer in layers)
for layer in layers:
- assert {spec.get("appearance") for spec in layer["image-name-specializations"]} >= {None, "dark"}
+ specs = {spec.get("appearance"): spec["value"] for spec in layer["image-name-specializations"]}
+ assert set(specs) >= {None, "dark", "tinted"}
+ assert specs["tinted"] == specs["dark"]
referenced = {spec["value"] for layer in layers for spec in layer["image-name-specializations"]}
assert referenced == {p.name for p in (package / "Assets").iterdir()}, "every layer image is referenced, none dangle"
return fills["light"], fills["dark"]