Android launcher icon from ic_icon.toml (icon-studio export); drop the placeholder

72bce3e · gmorell · 2026-12-03 01:36

34 files +54 -29

Files changed

modified android/README.md
+4 −6
@@ -75,12 +75,10 @@ posts, sign-up, push notifications (docs/android.md §2e).
75 75
76 76 ## Launcher icon
77 77
78 −`res/mipmap-anydpi-v26/ic_icon.xml` and `res/drawable/ic_icon_placeholder_*`
79 −are a placeholder. The icon is `../ic_icon.toml`, an icon-studio document:
80 −open it in icon-studio and export to the repo root (it resolves to
81 −`android/app/src/main/res`), which writes `mipmap-*/ic_icon*.png` and
82 −overwrites `mipmap-anydpi-v26/ic_icon.xml`. Then delete the two placeholder
83 −drawables. The manifest already names `@mipmap/ic_icon`.
78 +The icon is `../ic_icon.toml`, an icon-studio document. To change it, open
79 +it in icon-studio and export to the repo root (it resolves to
80 +`android/app/src/main/res`): that rewrites `mipmap-*/ic_icon*.png` and
81 +`mipmap-anydpi-v26/ic_icon.xml`. The manifest already names `@mipmap/ic_icon`.
84 82
85 83 ## Release builds
86 84
deleted android/app/src/main/res/drawable/ic_icon_placeholder_background.xml
+0 −5
@@ -1,5 +0,0 @@
1 −<?xml version="1.0" encoding="utf-8"?>
2 −<!-- Placeholder; see mipmap-anydpi-v26/ic_icon.xml. The web's dark base-200. -->
3 −<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
4 − <solid android:color="#1E2329"/>
5 −</shape>
deleted android/app/src/main/res/drawable/ic_icon_placeholder_foreground.xml
+0 −9
@@ -1,9 +0,0 @@
1 −<?xml version="1.0" encoding="utf-8"?>
2 −<!-- Placeholder; see mipmap-anydpi-v26/ic_icon.xml. A plain speech bubble in
3 − the web's primary, inside the 66dp adaptive safe zone. -->
4 −<vector xmlns:android="http://schemas.android.com/apk/res/android"
5 − android:width="108dp" android:height="108dp"
6 − android:viewportWidth="108" android:viewportHeight="108">
7 − <path android:fillColor="#B6797A"
8 − android:pathData="M34,36h40a6,6 0,0 1,6 6v22a6,6 0,0 1,-6 6H52l-12,10v-10h-6a6,6 0,0 1,-6 -6V42a6,6 0,0 1,6 -6z"/>
9 −</vector>
modified android/app/src/main/res/mipmap-anydpi-v26/ic_icon.xml
+4 −7
@@ -1,9 +1,6 @@
1 1 <?xml version="1.0" encoding="utf-8"?>
2 −<!-- PLACEHOLDER launcher icon. An icon-studio export of ../../../../ic_icon.toml
3 − into android/app/src/main/res overwrites this file (pointing it at the
4 − generated @mipmap/ic_icon_background / _foreground PNGs) and adds the
5 − mipmap-*dpi buckets; then delete drawable/ic_icon_placeholder_*.xml. -->
6 −<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
7 − <background android:drawable="@drawable/ic_icon_placeholder_background" />
8 − <foreground android:drawable="@drawable/ic_icon_placeholder_foreground" />
2 +<adaptive-icon
3 + xmlns:android="http://schemas.android.com/apk/res/android">
4 + <background android:drawable="@mipmap/ic_icon_background" />
5 + <foreground android:drawable="@mipmap/ic_icon_foreground" />
9 6 </adaptive-icon>
modified ?
+0 −0

Binary file — not rendered.

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified ?
+0 −0

Click to load diff…

modified docs/android.md
+2 −2

Click to load diff…

added ic_icon.toml
+44 −0

Click to load diff…

Parents: 06ebb60