The launcher icon is the app's own: the leaf with a phone beside it
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
4 files changed
+63
-15
No files matched your search
@@ -3,6 +3,13 @@
|
||||
What changed in each release of LLeMbas for Android. Versions follow SemVer; until 1.0.0 the app
|
||||
is in alpha and releases come off `main`.
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Changed
|
||||
|
||||
- **The launcher icon is the app's own**: the LLeMbas leaf with a small phone beside it, so the app
|
||||
is told apart from the other LLeMbas products. The notification icon stays the leaf.
|
||||
|
||||
## [1.0.0-beta.14] — 2026-11-24
|
||||
|
||||
What is said here of replies that start by themselves needs an instance newer than LLeMbas
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp" android:height="108dp"
|
||||
android:viewportWidth="108" android:viewportHeight="108">
|
||||
<group android:translateX="26" android:translateY="26" android:scaleX="3.5" android:scaleY="3.5">
|
||||
<path android:fillColor="#0B0D10" android:pathData="M10,0h5v1h-5z M8,1h2v1h-2z M15,1h1v1h-1z M6,2h2v1h-2z M15,2h1v1h-1z M5,3h1v1h-1z M15,3h1v1h-1z M5,4h1v1h-1z M14,4h1v1h-1z M4,5h1v1h-1z M14,5h1v1h-1z M4,6h1v1h-1z M14,6h1v1h-1z M3,7h1v1h-1z M13,7h1v1h-1z M3,8h1v1h-1z M12,8h1v1h-1z M3,9h1v1h-1z M11,9h1v1h-1z M3,10h1v1h-1z M10,10h1v1h-1z M3,11h1v1h-1z M7,11h3v1h-3z M2,12h1v1h-1z M4,12h3v1h-3z M1,13h1v1h-1z M3,13h1v1h-1z M0,14h1v1h-1z M2,14h1v1h-1z M1,15h1v1h-1z"/>
|
||||
<path android:fillColor="#4FAE5A" android:pathData="M14,2h1v1h-1z M13,3h2v1h-2z M12,4h2v1h-2z M11,5h3v1h-3z M10,6h4v1h-4z M9,7h4v1h-4z M8,8h4v1h-4z M7,9h4v1h-4z M6,10h4v1h-4z M5,11h2v1h-2z M3,12h1v1h-1z M2,13h1v1h-1z M1,14h1v1h-1z"/>
|
||||
<path android:fillColor="#7EE081" android:pathData="M11,1h4v1h-4z M10,2h2v1h-2z M9,3h2v1h-2z M8,4h2v1h-2z M7,5h2v1h-2z M6,6h2v1h-2z M5,7h2v1h-2z M4,8h2v1h-2z M4,9h1v1h-1z M4,11h1v1h-1z"/>
|
||||
<path android:fillColor="#B6F2A6" android:pathData="M10,1h1v1h-1z M8,2h2v1h-2z M6,3h3v1h-3z M6,4h2v1h-2z M5,5h2v1h-2z M5,6h1v1h-1z M4,7h1v1h-1z"/>
|
||||
<path android:fillColor="#D8FFD0" android:pathData="M12,2h2v1h-2z M11,3h2v1h-2z M10,4h2v1h-2z M9,5h2v1h-2z M8,6h2v1h-2z M7,7h2v1h-2z M6,8h2v1h-2z M5,9h2v1h-2z M4,10h2v1h-2z"/>
|
||||
<group android:translateX="21" android:translateY="21" android:scaleX="2.75" android:scaleY="2.75">
|
||||
<path android:fillColor="#0B0D10" android:pathData="M12,2h5v1h-5z M10,3h2v1h-2z M17,3h1v1h-1z M8,4h2v1h-2z M17,4h1v1h-1z M7,5h1v1h-1z M17,5h1v1h-1z M7,6h1v1h-1z M16,6h1v1h-1z M6,7h1v1h-1z M16,7h1v1h-1z M6,8h1v1h-1z M16,8h1v1h-1z M5,9h1v1h-1z M15,9h1v1h-1z M5,10h1v1h-1z M14,10h1v1h-1z M5,11h1v1h-1z M13,11h1v1h-1z M5,12h1v1h-1z M12,12h1v1h-1z M5,13h1v1h-1z M9,13h3v1h-3z M4,14h1v1h-1z M6,14h3v1h-3z M3,15h1v1h-1z M5,15h1v1h-1z M2,16h1v1h-1z M4,16h1v1h-1z M3,17h1v1h-1z"/>
|
||||
<path android:fillColor="#4FAE5A" android:pathData="M16,4h1v1h-1z M15,5h2v1h-2z M14,6h2v1h-2z M13,7h3v1h-3z M12,8h4v1h-4z M11,9h4v1h-4z M10,10h4v1h-4z M9,11h4v1h-4z M8,12h4v1h-4z M7,13h2v1h-2z M5,14h1v1h-1z M4,15h1v1h-1z M3,16h1v1h-1z"/>
|
||||
<path android:fillColor="#7EE081" android:pathData="M13,3h4v1h-4z M12,4h2v1h-2z M11,5h2v1h-2z M10,6h2v1h-2z M9,7h2v1h-2z M8,8h2v1h-2z M7,9h2v1h-2z M6,10h2v1h-2z M6,11h1v1h-1z M6,13h1v1h-1z"/>
|
||||
<path android:fillColor="#B6F2A6" android:pathData="M12,3h1v1h-1z M10,4h2v1h-2z M8,5h3v1h-3z M8,6h2v1h-2z M7,7h2v1h-2z M7,8h1v1h-1z M6,9h1v1h-1z"/>
|
||||
<path android:fillColor="#C792EA" android:pathData="M15,14h5v1h-5z M15,15h1v1h-1z M19,15h1v1h-1z M15,16h1v1h-1z M19,16h1v1h-1z M15,17h1v1h-1z M19,17h1v1h-1z M15,18h1v1h-1z M19,18h1v1h-1z M15,19h1v1h-1z M17,19h1v1h-1z M19,19h1v1h-1z M15,20h5v1h-5z"/>
|
||||
<path android:fillColor="#D8FFD0" android:pathData="M14,4h2v1h-2z M13,5h2v1h-2z M12,6h2v1h-2z M11,7h2v1h-2z M10,8h2v1h-2z M9,9h2v1h-2z M8,10h2v1h-2z M7,11h2v1h-2z M6,12h2v1h-2z"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -3,7 +3,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp" android:height="108dp"
|
||||
android:viewportWidth="108" android:viewportHeight="108">
|
||||
<group android:translateX="26" android:translateY="26" android:scaleX="3.5" android:scaleY="3.5">
|
||||
<path android:fillColor="#FFFFFFFF" android:pathData="M10,0h5v1h-5z M8,1h2v1h-2z M10,1h1v1h-1z M11,1h4v1h-4z M15,1h1v1h-1z M6,2h2v1h-2z M8,2h2v1h-2z M10,2h2v1h-2z M12,2h2v1h-2z M14,2h1v1h-1z M15,2h1v1h-1z M5,3h1v1h-1z M6,3h3v1h-3z M9,3h2v1h-2z M11,3h2v1h-2z M13,3h2v1h-2z M15,3h1v1h-1z M5,4h1v1h-1z M6,4h2v1h-2z M8,4h2v1h-2z M10,4h2v1h-2z M12,4h2v1h-2z M14,4h1v1h-1z M4,5h1v1h-1z M5,5h2v1h-2z M7,5h2v1h-2z M9,5h2v1h-2z M11,5h3v1h-3z M14,5h1v1h-1z M4,6h1v1h-1z M5,6h1v1h-1z M6,6h2v1h-2z M8,6h2v1h-2z M10,6h4v1h-4z M14,6h1v1h-1z M3,7h1v1h-1z M4,7h1v1h-1z M5,7h2v1h-2z M7,7h2v1h-2z M9,7h4v1h-4z M13,7h1v1h-1z M3,8h1v1h-1z M4,8h2v1h-2z M6,8h2v1h-2z M8,8h4v1h-4z M12,8h1v1h-1z M3,9h1v1h-1z M4,9h1v1h-1z M5,9h2v1h-2z M7,9h4v1h-4z M11,9h1v1h-1z M3,10h1v1h-1z M4,10h2v1h-2z M6,10h4v1h-4z M10,10h1v1h-1z M3,11h1v1h-1z M4,11h1v1h-1z M5,11h2v1h-2z M7,11h3v1h-3z M2,12h1v1h-1z M3,12h1v1h-1z M4,12h3v1h-3z M1,13h1v1h-1z M2,13h1v1h-1z M3,13h1v1h-1z M0,14h1v1h-1z M1,14h1v1h-1z M2,14h1v1h-1z M1,15h1v1h-1z"/>
|
||||
<group android:translateX="21" android:translateY="21" android:scaleX="2.75" android:scaleY="2.75">
|
||||
<path android:fillColor="#FFFFFFFF" android:pathData="M12,2h5v1h-5z M10,3h2v1h-2z M12,3h1v1h-1z M13,3h4v1h-4z M17,3h1v1h-1z M8,4h2v1h-2z M10,4h2v1h-2z M12,4h2v1h-2z M14,4h2v1h-2z M16,4h1v1h-1z M17,4h1v1h-1z M7,5h1v1h-1z M8,5h3v1h-3z M11,5h2v1h-2z M13,5h2v1h-2z M15,5h2v1h-2z M17,5h1v1h-1z M7,6h1v1h-1z M8,6h2v1h-2z M10,6h2v1h-2z M12,6h2v1h-2z M14,6h2v1h-2z M16,6h1v1h-1z M6,7h1v1h-1z M7,7h2v1h-2z M9,7h2v1h-2z M11,7h2v1h-2z M13,7h3v1h-3z M16,7h1v1h-1z M6,8h1v1h-1z M7,8h1v1h-1z M8,8h2v1h-2z M10,8h2v1h-2z M12,8h4v1h-4z M16,8h1v1h-1z M5,9h1v1h-1z M6,9h1v1h-1z M7,9h2v1h-2z M9,9h2v1h-2z M11,9h4v1h-4z M15,9h1v1h-1z M5,10h1v1h-1z M6,10h2v1h-2z M8,10h2v1h-2z M10,10h4v1h-4z M14,10h1v1h-1z M5,11h1v1h-1z M6,11h1v1h-1z M7,11h2v1h-2z M9,11h4v1h-4z M13,11h1v1h-1z M5,12h1v1h-1z M6,12h2v1h-2z M8,12h4v1h-4z M12,12h1v1h-1z M5,13h1v1h-1z M6,13h1v1h-1z M7,13h2v1h-2z M9,13h3v1h-3z M4,14h1v1h-1z M5,14h1v1h-1z M6,14h3v1h-3z M3,15h1v1h-1z M4,15h1v1h-1z M5,15h1v1h-1z M2,16h1v1h-1z M3,16h1v1h-1z M4,16h1v1h-1z M3,17h1v1h-1z M15,14h5v1h-5z M15,15h1v1h-1z M19,15h1v1h-1z M15,16h1v1h-1z M19,16h1v1h-1z M15,17h1v1h-1z M19,17h1v1h-1z M15,18h1v1h-1z M19,18h1v1h-1z M15,19h1v1h-1z M17,19h1v1h-1z M19,19h1v1h-1z M15,20h5v1h-5z"/>
|
||||
</group>
|
||||
</vector>
|
||||
+47
-7
@@ -6,9 +6,13 @@
|
||||
The mark is a 16x16 grid of rects, so it converts exactly into Android vector drawables -- one
|
||||
path per colour -- and needs no PNG at any density:
|
||||
|
||||
drawable/ic_launcher_foreground.xml the leaf, in the adaptive icon's 66dp safe zone
|
||||
drawable/ic_launcher_monochrome.xml its silhouette, for themed icons
|
||||
drawable/ic_notification.xml the same silhouette: a status-bar icon is alpha only
|
||||
drawable/ic_launcher_foreground.xml the leaf and the app's own sign, in the adaptive icon's 66dp safe zone
|
||||
drawable/ic_launcher_monochrome.xml their silhouette, for themed icons
|
||||
drawable/ic_notification.xml the leaf's silhouette alone: a status-bar icon is alpha only
|
||||
|
||||
Each LLeMbas product carries the server's leaf with one small pixel sign of its own in the free
|
||||
corner; this app's is a phone. The launcher's art is 24 pixels across: the leaf at (2, 2), the sign
|
||||
at (13, 14).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -37,6 +41,37 @@ def rects(svg: str) -> list[tuple[int, int, int, int, str]]:
|
||||
return found
|
||||
|
||||
|
||||
# The app's sign: a phone, in the launcher only.
|
||||
SIGN_COLOUR = "#C792EA"
|
||||
SIGN = (
|
||||
"..#####..",
|
||||
"..#...#..",
|
||||
"..#...#..",
|
||||
"..#...#..",
|
||||
"..#...#..",
|
||||
"..#.#.#..",
|
||||
"..#####..",
|
||||
)
|
||||
LEAF_AT = (2, 2)
|
||||
SIGN_AT = (13, 14)
|
||||
|
||||
|
||||
def sign() -> list[tuple[int, int, int, int, str]]:
|
||||
cells = []
|
||||
for y, row in enumerate(SIGN):
|
||||
x = 0
|
||||
while x < len(row):
|
||||
if row[x] != "#":
|
||||
x += 1
|
||||
continue
|
||||
w = 1
|
||||
while x + w < len(row) and row[x + w] == "#":
|
||||
w += 1
|
||||
cells.append((x + SIGN_AT[0], y + SIGN_AT[1], w, 1, SIGN_COLOUR))
|
||||
x += w
|
||||
return cells
|
||||
|
||||
|
||||
def path(cells) -> str:
|
||||
return " ".join(f"M{x},{y}h{w}v{h}h-{w}z" for x, y, w, h, _ in cells)
|
||||
|
||||
@@ -61,14 +96,19 @@ def main() -> None:
|
||||
for cell in cells:
|
||||
by_colour[cell[4]].append(cell)
|
||||
|
||||
# 108dp adaptive canvas; the leaf scaled x3.5 (56dp) and centred, inside the 66dp safe zone.
|
||||
# 108dp adaptive canvas; the art is 24 pixels across, scaled x2.75 (66dp) and centred: the safe zone.
|
||||
launcher = [(x + LEAF_AT[0], y + LEAF_AT[1], w, h, c) for x, y, w, h, c in cells] + sign()
|
||||
launcher_by_colour: dict[str, list] = defaultdict(list)
|
||||
for cell in launcher:
|
||||
launcher_by_colour[cell[4]].append(cell)
|
||||
coloured = "".join(
|
||||
f' <path android:fillColor="{colour}" android:pathData="{path(group)}"/>\n'
|
||||
for colour, group in sorted(by_colour.items())
|
||||
for colour, group in sorted(launcher_by_colour.items())
|
||||
)
|
||||
group = f' <group android:translateX="26" android:translateY="26" android:scaleX="3.5" android:scaleY="3.5">\n{coloured} </group>\n'
|
||||
placed = ' <group android:translateX="21" android:translateY="21" android:scaleX="2.75" android:scaleY="2.75">\n'
|
||||
group = f"{placed}{coloured} </group>\n"
|
||||
mono = f'{placed} <path android:fillColor="#FFFFFFFF" android:pathData="{path(launcher)}"/>\n </group>\n'
|
||||
silhouette = f' <path android:fillColor="#FFFFFFFF" android:pathData="{path(cells)}"/>\n'
|
||||
mono = f' <group android:translateX="26" android:translateY="26" android:scaleX="3.5" android:scaleY="3.5">\n{silhouette} </group>\n'
|
||||
|
||||
RES.mkdir(parents=True, exist_ok=True)
|
||||
(RES / "ic_launcher_foreground.xml").write_text(vector(108, 108, group))
|
||||
|
||||
Reference in new issue
Block a user