feat(assets): NexusOS asset + theme rebrand

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-11 07:25:15 -05:00
parent 5c2df30342
commit 3d1168ff8c
564 changed files with 4823 additions and 56 deletions

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 882 B

After

Width:  |  Height:  |  Size: 882 B

View File

Before

Width:  |  Height:  |  Size: 955 B

After

Width:  |  Height:  |  Size: 955 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 921 B

After

Width:  |  Height:  |  Size: 921 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Code chevrons + slash -->
<path d="M 52 42 L 34 64 L 52 86" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M 76 42 L 94 64 L 76 86" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="71" y1="38" x2="57" y2="90" stroke="#f2f2f2"
stroke-width="8" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 636 B

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Gamepad -->
<rect x="36" y="50" width="56" height="30" rx="15" fill="#f2f2f2"/>
<rect x="48" y="62.5" width="16" height="5" rx="1" fill="#5e0066"/>
<rect x="53.5" y="57" width="5" height="16" rx="1" fill="#5e0066"/>
<circle cx="76" cy="60" r="3.5" fill="#5e0066"/>
<circle cx="84" cy="68" r="3.5" fill="#5e0066"/>
</svg>

After

Width:  |  Height:  |  Size: 549 B

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Framed picture: sun + mountains -->
<rect x="34" y="40" width="60" height="48" rx="5" fill="none" stroke="#f2f2f2" stroke-width="7"/>
<circle cx="51" cy="55" r="6" fill="#f2f2f2"/>
<path d="M 40 84 L 56 63 L 67 74 L 78 58 L 88 84 Z" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 481 B

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Globe -->
<circle cx="64" cy="64" r="28" fill="none" stroke="#f2f2f2" stroke-width="7"/>
<ellipse cx="64" cy="64" rx="12" ry="28" fill="none" stroke="#f2f2f2" stroke-width="7"/>
<line x1="38" y1="55" x2="90" y2="55" stroke="#f2f2f2" stroke-width="7" stroke-linecap="round"/>
<line x1="38" y1="73" x2="90" y2="73" stroke="#f2f2f2" stroke-width="7" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 605 B

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Play triangle -->
<path d="M 51 40 L 51 88 L 92 64 Z" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 298 B

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Document with folded corner + text lines -->
<path d="M 44 32 L 74 32 L 86 44 L 86 96 L 44 96 Z" fill="#f2f2f2"/>
<path d="M 74 32 L 74 44 L 86 44 Z" fill="#5e0066"/>
<line x1="52" y1="58" x2="78" y2="58" stroke="#5e0066" stroke-width="5" stroke-linecap="round"/>
<line x1="52" y1="70" x2="78" y2="70" stroke="#5e0066" stroke-width="5" stroke-linecap="round"/>
<line x1="52" y1="82" x2="70" y2="82" stroke="#5e0066" stroke-width="5" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 693 B

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Erlenmeyer flask -->
<path d="M 56 34 L 56 58 L 38 88 Q 35 95 43 95 L 85 95 Q 93 95 90 88 L 72 58 L 72 34"
fill="none" stroke="#f2f2f2" stroke-width="7" stroke-linejoin="round"/>
<line x1="51" y1="34" x2="77" y2="34" stroke="#f2f2f2" stroke-width="8" stroke-linecap="round"/>
<path d="M 51 76 L 77 76 L 86 88 Q 89 93 83 93 L 45 93 Q 39 93 42 88 Z" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 604 B

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Monitor -->
<rect x="32" y="36" width="64" height="44" rx="5" fill="#f2f2f2"/>
<rect x="40" y="44" width="48" height="28" rx="2" fill="#5e0066"/>
<rect x="56" y="80" width="16" height="9" fill="#f2f2f2"/>
<rect x="44" y="89" width="40" height="7" rx="3" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 504 B

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Open-end wrench -->
<g transform="rotate(45 64 64)">
<rect x="58" y="44" width="12" height="44" rx="5" fill="#f2f2f2"/>
<circle cx="64" cy="44" r="14" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="17" fill="#5e0066"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 474 B

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Settings cog -->
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(0 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(45 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(90 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(135 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(180 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(225 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(270 64 64)" fill="#f2f2f2"/>
<rect x="57" y="27" width="14" height="21" rx="2" transform="rotate(315 64 64)" fill="#f2f2f2"/>
<circle cx="64" cy="64" r="25" fill="#f2f2f2"/>
<circle cx="64" cy="64" r="10" fill="#5e0066"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Crescent moon + Z -->
<path d="M 66 39 A 28 28 0 1 0 66 91 A 28 28 0 0 1 66 39 Z"
fill="#f2f2f2"/>
<path d="M 78 34 L 99 34 L 78 56 L 99 56" fill="none" stroke="#f2f2f2"
stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 481 B

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Padlock -->
<path d="M 52 64 L 52 50 A 12 12 0 0 1 76 50 L 76 64" fill="none"
stroke="#f2f2f2" stroke-width="8" stroke-linecap="round"/>
<rect x="40" y="62" width="48" height="40" rx="7" fill="#f2f2f2"/>
<circle cx="64" cy="78" r="6" fill="#5e0066"/>
<rect x="61" y="80" width="6" height="13" rx="3" fill="#5e0066"/>
</svg>

After

Width:  |  Height:  |  Size: 558 B

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Doorway bracket, open on the right -->
<path d="M 72 34 L 42 34 L 42 94 L 72 94" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<!-- Arrow exiting to the right -->
<path d="M 56 64 L 92 64" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round"/>
<path d="M 80 50 L 96 64 L 80 78" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 695 B

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Circular arrow -->
<path d="M 64 40 A 24 24 0 1 1 41 71" fill="none" stroke="#f2f2f2"
stroke-width="9" stroke-linecap="round"/>
<path d="M 50 32 L 70 40 L 56 56 Z" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 418 B

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Power symbol: broken ring (gap at top) + stem -->
<path d="M 55 51 A 22 22 0 1 0 73 51" fill="none" stroke="#f2f2f2"
stroke-width="10" stroke-linecap="round"/>
<rect x="59" y="35" width="10" height="31" rx="5" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 464 B

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Crescent moon: big disc minus a disc shifted right -->
<path d="M 74 33 A 33 33 0 1 0 74 95 A 33 33 0 0 1 74 33 Z"
fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 367 B

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<circle cx="64" cy="64" r="52" fill="#5e0066" stroke="#8cc63f" stroke-width="6"/>
<!-- Two person silhouettes -->
<circle cx="78" cy="56" r="13" fill="#f2f2f2"/>
<path d="M 56 96 Q 56 72 78 72 Q 100 72 100 96 Z" fill="#f2f2f2"/>
<circle cx="48" cy="60" r="12" fill="#f2f2f2"/>
<path d="M 28 96 Q 28 76 48 76 Q 60 76 65 84 L 56 88
Q 56 84 56 96 Z" fill="#f2f2f2"/>
</svg>

After

Width:  |  Height:  |  Size: 521 B

View File
+278
View File
@@ -0,0 +1,278 @@
#!/usr/bin/env python3
"""
NexusOS action-icon generator.
Builds the icons the XFCE logoff dialog (xfce4-session-logout) and the
Whisker menu command buttons request — shutdown / reboot / log-out /
suspend / hibernate / switch-user / lock-screen / settings — in the
NexusOS palette (white glyph on a deep-purple disc with a lime ring).
Emits one SVG per icon into actions/, rasterizes to
~/.icons/NexusOS/<size>/actions/<name>.png at 16/22/24/32/48/64/128,
then writes the alias copies (xfsm-*, system-suspend-hibernate, and the
settings-manager app-icon names that Whisker's Settings button uses).
Run: python3 build_actions.py # SVGs + PNGs + aliases
python3 build_actions.py --svg-only # just rewrite SVGs
"""
from pathlib import Path
import shutil
import subprocess
import sys
ROOT = Path(__file__).resolve().parent
ACTIONS = ROOT / "actions"
ICONS_OUT = Path.home() / ".icons" / "NexusOS"
SIZES = [16, 22, 24, 32, 48, 64, 128]
# ── colors (mirror gtk-3.0/colors.css) ────────────────────────────────
BODY = "#5e0066" # brand_purple_dark — disc fill
RING = "#8cc63f" # brand_green — disc ring
GLYPH = "#f2f2f2" # text_primary — glyph
# ── master: purple disc + lime ring, viewBox 0 0 128 128 ──────────────
# Glyph area: a ~70px box centered on (64, 64).
DISC = f' <circle cx="64" cy="64" r="52" fill="{BODY}" ' \
f'stroke="{RING}" stroke-width="6"/>\n'
def _gear_glyph() -> str:
"""Settings cog: 8 teeth on a white disc with a punched centre hole."""
teeth = "".join(
f' <rect x="57" y="27" width="14" height="21" rx="2" '
f'transform="rotate({k * 45} 64 64)" fill="{GLYPH}"/>\n'
for k in range(8)
)
return (
" <!-- Settings cog -->\n"
+ teeth
+ f' <circle cx="64" cy="64" r="25" fill="{GLYPH}"/>\n'
+ f' <circle cx="64" cy="64" r="10" fill="{BODY}"/>\n'
)
# ── glyph fragments — white, centered on (64, 64) ─────────────────────
GLYPHS = {
"system-shutdown": f"""\
<!-- Power symbol: broken ring (gap at top) + stem -->
<path d="M 55 51 A 22 22 0 1 0 73 51" fill="none" stroke="{GLYPH}"
stroke-width="10" stroke-linecap="round"/>
<rect x="59" y="35" width="10" height="31" rx="5" fill="{GLYPH}"/>
""",
"system-reboot": f"""\
<!-- Circular arrow -->
<path d="M 64 40 A 24 24 0 1 1 41 71" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round"/>
<path d="M 50 32 L 70 40 L 56 56 Z" fill="{GLYPH}"/>
""",
"system-log-out": f"""\
<!-- Doorway bracket, open on the right -->
<path d="M 72 34 L 42 34 L 42 94 L 72 94" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<!-- Arrow exiting to the right -->
<path d="M 56 64 L 92 64" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round"/>
<path d="M 80 50 L 96 64 L 80 78" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
""",
"system-suspend": f"""\
<!-- Crescent moon: big disc minus a disc shifted right -->
<path d="M 74 33 A 33 33 0 1 0 74 95 A 33 33 0 0 1 74 33 Z"
fill="{GLYPH}"/>
""",
"system-hibernate": f"""\
<!-- Crescent moon + Z -->
<path d="M 66 39 A 28 28 0 1 0 66 91 A 28 28 0 0 1 66 39 Z"
fill="{GLYPH}"/>
<path d="M 78 34 L 99 34 L 78 56 L 99 56" fill="none" stroke="{GLYPH}"
stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
""",
"system-switch-user": f"""\
<!-- Two person silhouettes -->
<circle cx="78" cy="56" r="13" fill="{GLYPH}"/>
<path d="M 56 96 Q 56 72 78 72 Q 100 72 100 96 Z" fill="{GLYPH}"/>
<circle cx="48" cy="60" r="12" fill="{GLYPH}"/>
<path d="M 28 96 Q 28 76 48 76 Q 60 76 65 84 L 56 88
Q 56 84 56 96 Z" fill="{GLYPH}"/>
""",
"system-lock-screen": f"""\
<!-- Padlock -->
<path d="M 52 64 L 52 50 A 12 12 0 0 1 76 50 L 76 64" fill="none"
stroke="{GLYPH}" stroke-width="8" stroke-linecap="round"/>
<rect x="40" y="62" width="48" height="40" rx="7" fill="{GLYPH}"/>
<circle cx="64" cy="78" r="6" fill="{BODY}"/>
<rect x="61" y="80" width="6" height="13" rx="3" fill="{BODY}"/>
""",
"preferences-desktop": _gear_glyph(),
# ── Whisker menu application-category glyphs ──────────────────────
"applications-internet": f"""\
<!-- Globe -->
<circle cx="64" cy="64" r="28" fill="none" stroke="{GLYPH}" stroke-width="7"/>
<ellipse cx="64" cy="64" rx="12" ry="28" fill="none" stroke="{GLYPH}" stroke-width="7"/>
<line x1="38" y1="55" x2="90" y2="55" stroke="{GLYPH}" stroke-width="7" stroke-linecap="round"/>
<line x1="38" y1="73" x2="90" y2="73" stroke="{GLYPH}" stroke-width="7" stroke-linecap="round"/>
""",
"applications-development": f"""\
<!-- Code chevrons + slash -->
<path d="M 52 42 L 34 64 L 52 86" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M 76 42 L 94 64 L 76 86" fill="none" stroke="{GLYPH}"
stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="71" y1="38" x2="57" y2="90" stroke="{GLYPH}"
stroke-width="8" stroke-linecap="round"/>
""",
"applications-multimedia": f"""\
<!-- Play triangle -->
<path d="M 51 40 L 51 88 L 92 64 Z" fill="{GLYPH}"/>
""",
"applications-office": f"""\
<!-- Document with folded corner + text lines -->
<path d="M 44 32 L 74 32 L 86 44 L 86 96 L 44 96 Z" fill="{GLYPH}"/>
<path d="M 74 32 L 74 44 L 86 44 Z" fill="{BODY}"/>
<line x1="52" y1="58" x2="78" y2="58" stroke="{BODY}" stroke-width="5" stroke-linecap="round"/>
<line x1="52" y1="70" x2="78" y2="70" stroke="{BODY}" stroke-width="5" stroke-linecap="round"/>
<line x1="52" y1="82" x2="70" y2="82" stroke="{BODY}" stroke-width="5" stroke-linecap="round"/>
""",
"applications-graphics": f"""\
<!-- Framed picture: sun + mountains -->
<rect x="34" y="40" width="60" height="48" rx="5" fill="none" stroke="{GLYPH}" stroke-width="7"/>
<circle cx="51" cy="55" r="6" fill="{GLYPH}"/>
<path d="M 40 84 L 56 63 L 67 74 L 78 58 L 88 84 Z" fill="{GLYPH}"/>
""",
"applications-system": f"""\
<!-- Monitor -->
<rect x="32" y="36" width="64" height="44" rx="5" fill="{GLYPH}"/>
<rect x="40" y="44" width="48" height="28" rx="2" fill="{BODY}"/>
<rect x="56" y="80" width="16" height="9" fill="{GLYPH}"/>
<rect x="44" y="89" width="40" height="7" rx="3" fill="{GLYPH}"/>
""",
"applications-utilities": f"""\
<!-- Open-end wrench -->
<g transform="rotate(45 64 64)">
<rect x="58" y="44" width="12" height="44" rx="5" fill="{GLYPH}"/>
<circle cx="64" cy="44" r="14" fill="{GLYPH}"/>
<rect x="57" y="27" width="14" height="17" fill="{BODY}"/>
</g>
""",
"applications-games": f"""\
<!-- Gamepad -->
<rect x="36" y="50" width="56" height="30" rx="15" fill="{GLYPH}"/>
<rect x="48" y="62.5" width="16" height="5" rx="1" fill="{BODY}"/>
<rect x="53.5" y="57" width="5" height="16" rx="1" fill="{BODY}"/>
<circle cx="76" cy="60" r="3.5" fill="{BODY}"/>
<circle cx="84" cy="68" r="3.5" fill="{BODY}"/>
""",
"applications-science": f"""\
<!-- Erlenmeyer flask -->
<path d="M 56 34 L 56 58 L 38 88 Q 35 95 43 95 L 85 95 Q 93 95 90 88 L 72 58 L 72 34"
fill="none" stroke="{GLYPH}" stroke-width="7" stroke-linejoin="round"/>
<line x1="51" y1="34" x2="77" y2="34" stroke="{GLYPH}" stroke-width="8" stroke-linecap="round"/>
<path d="M 51 76 L 77 76 L 86 88 Q 89 93 83 93 L 45 93 Q 39 93 42 88 Z" fill="{GLYPH}"/>
""",
}
# Extra filenames that render the same art (XFCE's xfsm-* lookup names,
# the hybrid-sleep alias, and the Whisker command-button names).
ALIASES = {
"xfsm-logout": "system-log-out",
"xfsm-reboot": "system-reboot",
"xfsm-shutdown": "system-shutdown",
"xfsm-suspend": "system-suspend",
"xfsm-hibernate": "system-hibernate",
"xfsm-switch-user": "system-switch-user",
"system-suspend-hibernate": "system-suspend",
"xfsm-lock": "system-lock-screen",
"preferences-system": "preferences-desktop",
"org.xfce.settings.manager": "preferences-desktop",
"xfce4-settings-manager": "preferences-desktop",
# XFCE's "Accessories" menu uses xfce-accessories.directory
# (Icon=applications-accessories), NOT the freedesktop Utility name, so
# it needs the same wrench/tools badge as applications-utilities.
"applications-accessories": "applications-utilities",
}
def svg_for(glyph: str) -> str:
return (
'<?xml version="1.0" encoding="UTF-8"?>\n'
'<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" '
'viewBox="0 0 128 128">\n'
f"{DISC}{glyph}</svg>\n"
)
def write_svgs() -> list[str]:
ACTIONS.mkdir(parents=True, exist_ok=True)
for name, glyph in GLYPHS.items():
(ACTIONS / f"{name}.svg").write_text(svg_for(glyph))
return list(GLYPHS)
def render_pngs(names: list[str]) -> None:
for name in names:
svg = ACTIONS / f"{name}.svg"
for size in SIZES:
out_dir = ICONS_OUT / f"{size}x{size}" / "actions"
out_dir.mkdir(parents=True, exist_ok=True)
out = out_dir / f"{name}.png"
subprocess.run(
[
"inkscape",
str(svg),
"--export-type=png",
f"--export-filename={out}",
f"--export-width={size}",
f"--export-height={size}",
],
check=True,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
print(f" rendered {name} @ {size}")
def write_aliases() -> None:
for alias, src in ALIASES.items():
for size in SIZES:
d = ICONS_OUT / f"{size}x{size}" / "actions"
src_png = d / f"{src}.png"
if src_png.exists():
shutil.copy2(src_png, d / f"{alias}.png")
print(f" alias {alias} -> {src}")
def main() -> None:
svg_only = "--svg-only" in sys.argv
names = write_svgs()
print(f"Wrote {len(names)} SVGs into {ACTIONS}")
if svg_only:
return
render_pngs(names)
write_aliases()
subprocess.run(
["gtk-update-icon-cache", "-f", str(ICONS_OUT)],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
)
print("\nDone. Reload: xfdesktop --reload & xfce4-panel -r")
if __name__ == "__main__":
main()
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env python3
"""
NexusOS battery-icon recolorizer.
xfce4-power-manager draws the panel battery from the icon theme's
`battery-*-charging-symbolic` icons. Papirus-Dark (which NexusOS
inherits from) paints the charging bolt/fill in its own material green
(#4caf50). This script copies every charging battery symbolic icon into
the NexusOS theme with that green swapped for brand_green (#8cc63f), so
the charging indicator matches the rest of the NexusOS accent.
Only the green is touched — the gray battery body (#dfdfdf) is left
alone (it already reads fine on the dark panel). Symlinked aliases
(good/low/medium/caution/empty-charging) are resolved and written as
real recolored files so every requested name overrides Papirus.
Run: python3 build_battery.py
Then: gtk-update-icon-cache -f -t ../NexusOS-icons
xfce4-panel -r # reload panel to pick up new icons
"""
from pathlib import Path
ROOT = Path(__file__).resolve().parent
OUT = ROOT.parent / "NexusOS-icons" / "scalable" / "status"
SRC = Path("/usr/share/icons/Papirus-Dark/symbolic/status")
PAPIRUS_GREEN = "#4caf50"
NEXUS_GREEN = "#8cc63f" # brand_green
def main() -> None:
OUT.mkdir(parents=True, exist_ok=True)
# Every charging battery symbolic icon (charged-100 has no green, so
# the replace is a harmless no-op there; we copy it too for a
# consistent battery set under the NexusOS theme).
sources = sorted(SRC.glob("battery-*charg*-symbolic.svg"))
written = 0
for src in sources:
# read_text follows symlinks, so alias names get the real content
content = src.read_text()
if PAPIRUS_GREEN not in content:
# charged/full icons with no green — skip; let them fall
# through to Papirus unchanged.
continue
recolored = content.replace(PAPIRUS_GREEN, NEXUS_GREEN)
(OUT / src.name).write_text(recolored)
written += 1
print(f"Recolored {written} charging battery icons "
f"({PAPIRUS_GREEN} -> {NEXUS_GREEN}) into {OUT}")
if __name__ == "__main__":
main()
View File
+398
View File
@@ -0,0 +1,398 @@
#!/usr/bin/env python3
"""
NexusOS network status icons generator.
Generates flat symbolic-style SVGs for nm-tray and any other Qt/GTK app
that requests network-* status icons. Output goes to
scalable/status/ of the NexusOS-icons theme.
Design language:
* 16×16 viewBox, scalable SVG (no rasterization needed — Qt5 + GTK3
both handle SVG fine in scalable/ dirs)
* Light off-white stroke for base shape (wifi fan, ethernet plug,
globe) — readable on the dark NexusOS surfaces
* Lime brand accent for connected / active states
* Purple lock for encryption
* Red for error, orange for acquiring / no-route
Run: python3 build_status.py
"""
from pathlib import Path
import math
ROOT = Path(__file__).resolve().parent
OUT = ROOT.parent / "NexusOS-icons" / "scalable" / "status"
# Palette — mirrors gtk-3.0/colors.css.
BASE = "#f2f2f2" # text_primary
MUTED = "#6e7173" # text_disabled
GOOD = "#8cc63f" # brand_green
LOCK = "#f2f2f2" # text_primary (white) — neutral attribute indicator
# while green is reserved for active signal strength.
ERROR = "#da4453" # error_color
WARN = "#f67400" # warning_color
SW = 1.6
# Wifi fan arc geometry: half-angle from vertical. Smaller half-angle ⇒
# narrower sweep but allows bigger radius (taller fan) before endpoints
# run off the sides at 16x16. 40° (80° total sweep) is a sweet spot.
ARC_HALF_ANGLE = 40
S_ARC = math.sin(math.radians(ARC_HALF_ANGLE)) # x offset coefficient
C_ARC = math.cos(math.radians(ARC_HALF_ANGLE)) # y offset coefficient
def svg(body: str) -> str:
return (
'<svg xmlns="http://www.w3.org/2000/svg" '
'viewBox="0 0 16 16" width="16" height="16">\n'
+ body.rstrip()
+ "\n</svg>\n"
)
# ── wifi fan ────────────────────────────────────────────────────────
# Fan sits low in the viewBox with arcs reaching almost the top edge so
# the rendered icon matches the height of neighboring tray icons (shield,
# bluetooth, etc.). Outermost r=11.5 with the narrower 80° arc sweep
# keeps endpoints inside x=[0.61, 15.39] — fits with stroke-cap margin.
WIFI_CX, WIFI_CY = 8, 13.0
WIFI_R = [3.0, 5.5, 8.5, 11.5]
DOT_R = 1.3
def _arc(r: float, color: str, opacity: float = 1.0) -> str:
x0 = WIFI_CX - r * S_ARC
x1 = WIFI_CX + r * S_ARC
y = WIFI_CY - r * C_ARC
return (
f' <path d="M {x0:.2f} {y:.2f} A {r} {r} 0 0 1 {x1:.2f} {y:.2f}" '
f'fill="none" stroke="{color}" stroke-width="{SW}" '
f'stroke-linecap="round" opacity="{opacity}"/>'
)
def wifi_fan(level: int, active_color: str = GOOD) -> str:
"""level 0 (none) .. 4 (excellent). Filled arcs use brand_green by
default so signal strength reads as the primary visual element."""
parts = []
for i, r in enumerate(WIFI_R):
if i < level:
parts.append(_arc(r, active_color, 1.0))
else:
parts.append(_arc(r, MUTED, 0.35))
if level > 0:
parts.append(
f' <circle cx="{WIFI_CX}" cy="{WIFI_CY}" r="{DOT_R}" '
f'fill="{active_color}"/>'
)
else:
parts.append(
f' <circle cx="{WIFI_CX}" cy="{WIFI_CY}" r="{DOT_R}" '
f'fill="{MUTED}" opacity="0.45"/>'
)
return "\n".join(parts)
# ── ethernet plug (RJ45) ────────────────────────────────────────────
# Sized to fill ~75% of the viewBox vertically (y=2→14) and horizontally
# (x=2→14) so the rendered icon matches the height of neighboring tray
# icons (shield, notification, bluetooth) instead of looking like a tiny
# crate in the middle of the slot.
def ethernet_plug(color: str = GOOD, opacity: float = 1.0) -> str:
return (
f' <g stroke="{color}" stroke-width="{SW}" stroke-linecap="round" '
f'stroke-linejoin="round" fill="none" opacity="{opacity}">\n'
# Pentagonal RJ45 outline
' <path d="M 2 2 L 14 2 L 14 10.5 L 12 14 L 4 14 L 2 10.5 Z"/>\n'
# Three pins, spread wider to match the bigger body
' <line x1="5" y1="4.5" x2="5" y2="8.5"/>\n'
' <line x1="8" y1="4.5" x2="8" y2="8.5"/>\n'
' <line x1="11" y1="4.5" x2="11" y2="8.5"/>\n'
" </g>"
)
# ── globe (generic network) ─────────────────────────────────────────
def globe(color: str = BASE, opacity: float = 1.0) -> str:
return (
f' <g stroke="{color}" stroke-width="{SW}" stroke-linecap="round" '
f'stroke-linejoin="round" fill="none" opacity="{opacity}">\n'
' <circle cx="8" cy="8" r="5.5"/>\n'
' <ellipse cx="8" cy="8" rx="2.5" ry="5.5"/>\n'
' <line x1="2.5" y1="8" x2="13.5" y2="8"/>\n'
" </g>"
)
# ── key (vpn) ───────────────────────────────────────────────────────
def vpn_key(color: str = GOOD, opacity: float = 1.0) -> str:
"""Horizontal key: round bow on the left, shaft to the right with
two teeth hanging down. Stroke-only so it doesn't visually dominate
the way the filled globe did."""
return (
f' <g stroke="{color}" stroke-width="1.7" stroke-linecap="round" '
f'stroke-linejoin="round" fill="none" opacity="{opacity}">\n'
# Bow (handle) — outline circle on the left
' <circle cx="4.6" cy="7" r="2.7"/>\n'
# Shaft
' <path d="M 7.3 7 H 14"/>\n'
# Two teeth pointing down
' <path d="M 11.7 7 V 9.6 M 13.6 7 V 8.7"/>\n'
" </g>"
)
# ── state overlays / badges ─────────────────────────────────────────
# nm-tray's MultiIconDelegate stacks state icons on top of the signal-
# level base, so each overlay icon is *just the badge* — no wifi fan,
# no globe. That way stacking signal-good + encrypted gives fan + lock
# instead of fan + fan + lock, and adding -disconnected on top of an
# unsaved network adds a single X instead of another fan.
def standalone_lock(color: str = LOCK) -> str:
"""Centered padlock filling most of the 16x16 box. This is the icon
nm-tray actually loads for encryption — it requests `security-high`
/ `security-high-symbolic` (NOT `network-wireless-encrypted`) and
overlays it on top of a `network-wireless-signal-*` base via its
MultiIconDelegate, scaling our full-size lock into a corner badge.
Keyhole detail intentionally omitted: at the corner-badge render
size nm-tray uses, it's invisible anyway, and a dark keyhole on a
white body reads as visual noise rather than as a lock detail."""
return (
# Body: 8.5w x 6h, centered horizontally, sitting low
f' <rect x="3.75" y="7.5" width="8.5" height="6.5" rx="1.0" '
f'fill="{color}"/>\n'
# Shackle: pronounced U above the body
f' <path d="M 5.5 7.5 V 4.5 a 2.5 2.5 0 0 1 5 0 V 7.5" '
f'fill="none" stroke="{color}" stroke-width="1.8" '
f'stroke-linecap="round" stroke-linejoin="round"/>'
)
def badge_lock() -> str:
"""Lock badge: body 4.4w × 3.8h + shackle 3w × 2h on top, lower-right
corner. Made deliberately larger and with a thicker shackle stroke
than a typical badge — at 16-24px render, a small thin-stroke lock
blurs into a shield-like rounded shape. The big-shackle proportions
here keep the lock recognizable down to ~18px icon size."""
return (
' <g transform="translate(9.5 9.0)">\n'
f' <rect x="0" y="3.0" width="4.4" height="3.8" rx="0.45" '
f'fill="{LOCK}"/>\n'
f' <path d="M 0.7 3.0 V 1.1 a 1.5 1.5 0 0 1 3.0 0 V 3.0" '
f'fill="none" stroke="{LOCK}" stroke-width="1.15" '
f'stroke-linecap="round" stroke-linejoin="round"/>\n'
" </g>"
)
def badge_x(color: str = ERROR) -> str:
return (
f' <g stroke="{color}" stroke-width="1.4" stroke-linecap="round" '
'transform="translate(10 10)">\n'
' <line x1="0" y1="0" x2="4.5" y2="4.5"/>\n'
' <line x1="4.5" y1="0" x2="0" y2="4.5"/>\n'
" </g>"
)
def badge_dots(color: str = WARN) -> str:
return (
f' <g fill="{color}">\n'
' <circle cx="10.5" cy="13" r="0.9"/>\n'
' <circle cx="13" cy="13" r="0.9"/>\n'
' <circle cx="15.5" cy="13" r="0.9"/>\n'
" </g>"
)
def badge_excl(color: str = ERROR) -> str:
return (
f' <g fill="{color}" stroke="none">\n'
' <rect x="11.4" y="9" width="1.4" height="3" rx="0.5"/>\n'
' <circle cx="12.1" cy="13.5" r="0.85"/>\n'
" </g>"
)
def badge_slash(color: str = MUTED) -> str:
return (
f' <line x1="2.5" y1="13.5" x2="13.5" y2="2.5" '
f'stroke="{color}" stroke-width="1.6" stroke-linecap="round"/>'
)
def badge_arrow_up(color: str = GOOD) -> str:
return (
f' <path d="M 12.5 14 V 9 M 10.5 11 L 12.5 9 L 14.5 11" '
f'fill="none" stroke="{color}" stroke-width="1.4" '
'stroke-linecap="round" stroke-linejoin="round"/>'
)
def badge_arrow_down(color: str = GOOD) -> str:
return (
f' <path d="M 3.5 9 V 14 M 1.5 12 L 3.5 14 L 5.5 12" '
f'fill="none" stroke="{color}" stroke-width="1.4" '
'stroke-linecap="round" stroke-linejoin="round"/>'
)
# ── icon catalog ────────────────────────────────────────────────────
def cell_tech(label: str) -> str:
"""Wifi fan + tiny generation-tech label (2G/3G/4G/5G/E/G/H/U/1x)."""
return svg(
wifi_fan(3) + "\n"
f' <text x="11" y="13" font-family="sans-serif" font-size="4.5" '
f'font-weight="bold" fill="{BASE}">{label}</text>'
)
ICONS = {
# wireless signal levels
"network-wireless-signal-none": svg(wifi_fan(0)),
"network-wireless-signal-weak": svg(wifi_fan(1)),
"network-wireless-signal-ok": svg(wifi_fan(2)),
"network-wireless-signal-good": svg(wifi_fan(3)),
"network-wireless-signal-excellent": svg(wifi_fan(4)),
# wireless — nm-tray picks one icon per row, so each name is a
# self-contained composite (signal-level fan + state badge if any).
"network-wireless": svg(wifi_fan(3)),
"network-wireless-connected": svg(wifi_fan(4, GOOD)),
# Disconnected: faded-empty fan. NO X badge — nm-tray overlays this
# on top of saved-network rows, so an X here would visually pile up
# with the encrypted-lock overlay. The dim level-0 fan already reads
# as "no signal/disconnected" without the extra badge.
"network-wireless-disconnected": svg(wifi_fan(0)),
"network-wireless-disabled": svg(wifi_fan(0) + "\n" + badge_slash()),
"network-wireless-acquiring": svg(wifi_fan(2) + "\n" + badge_dots()),
"network-wireless-error": svg(wifi_fan(2) + "\n" + badge_excl()),
"network-wireless-no-route": svg(wifi_fan(3) + "\n" + badge_excl(WARN)),
"network-wireless-offline": svg(wifi_fan(0)),
"network-wireless-encrypted": svg(wifi_fan(3) + "\n" + badge_lock()),
"network-wireless-hotspot": svg(wifi_fan(4, GOOD) + "\n" + badge_dots(GOOD)),
"network-wireless-hardware-disabled": svg(wifi_fan(0) + "\n" + badge_slash(ERROR)),
# wired
"network-wired": svg(ethernet_plug()),
"network-wired-disconnected": svg(ethernet_plug(MUTED, 0.55) + "\n" + badge_x()),
"network-wired-acquiring": svg(ethernet_plug() + "\n" + badge_dots()),
"network-wired-error": svg(ethernet_plug() + "\n" + badge_excl()),
"network-wired-no-route": svg(ethernet_plug() + "\n" + badge_excl(WARN)),
"network-wired-offline": svg(ethernet_plug(MUTED, 0.55)),
# vpn — green key. Stroke-only so it doesn't dominate the menu row.
"network-vpn": svg(vpn_key()),
"network-vpn-connected": svg(vpn_key()),
"network-vpn-acquiring": svg(vpn_key() + "\n" + badge_dots()),
"network-vpn-disconnected": svg(vpn_key(MUTED, 0.55) + "\n" + badge_x()),
"network-vpn-error": svg(vpn_key(ERROR)),
"network-vpn-no-route": svg(vpn_key() + "\n" + badge_excl(WARN)),
"network-vpn-offline": svg(vpn_key(MUTED, 0.55)),
# generic
"network-error": svg(globe() + "\n" + badge_excl()),
"network-idle": svg(globe()),
"network-offline": svg(globe(MUTED, 0.55) + "\n" + badge_slash()),
"network-no-route": svg(globe() + "\n" + badge_excl(WARN)),
"network-acquiring": svg(globe() + "\n" + badge_dots()),
"network-transmit": svg(globe() + "\n" + badge_arrow_up()),
"network-receive": svg(globe() + "\n" + badge_arrow_down()),
"network-transmit-receive": svg(globe() + "\n" + badge_arrow_up() + "\n" + badge_arrow_down()),
# cellular — same fan, with state badges
"network-cellular-signal-none": svg(wifi_fan(0)),
"network-cellular-signal-weak": svg(wifi_fan(1)),
"network-cellular-signal-ok": svg(wifi_fan(2)),
"network-cellular-signal-good": svg(wifi_fan(3)),
"network-cellular-signal-excellent": svg(wifi_fan(4)),
"network-cellular-acquiring": svg(wifi_fan(2) + "\n" + badge_dots()),
"network-cellular-connected": svg(wifi_fan(4, GOOD)),
"network-cellular-disabled": svg(wifi_fan(0) + "\n" + badge_slash()),
"network-cellular-disconnected": svg(wifi_fan(0) + "\n" + badge_x()),
"network-cellular-error": svg(wifi_fan(2) + "\n" + badge_excl()),
"network-cellular-hardware-disabled": svg(wifi_fan(0) + "\n" + badge_slash(ERROR)),
"network-cellular-no-route": svg(wifi_fan(3) + "\n" + badge_excl(WARN)),
"network-cellular-offline": svg(wifi_fan(0)),
# security indicators — nm-tray's actual encryption overlay icon
"security-high": svg(standalone_lock()),
"security-high-symbolic": svg(standalone_lock()),
"security-medium": svg(standalone_lock(WARN)),
"security-medium-symbolic": svg(standalone_lock(WARN)),
"security-low": svg(standalone_lock(ERROR)),
"security-low-symbolic": svg(standalone_lock(ERROR)),
# cellular generation-tech labels
"network-cellular-2g": cell_tech("2G"),
"network-cellular-3g": cell_tech("3G"),
"network-cellular-4g": cell_tech("4G"),
"network-cellular-5g": cell_tech("5G"),
"network-cellular-edge": cell_tech("E"),
"network-cellular-gprs": cell_tech("G"),
"network-cellular-cdma-1x": cell_tech("1x"),
"network-cellular-hspa": cell_tech("H"),
"network-cellular-umts": cell_tech("U"),
}
# ── genmon panel applet PNGs ─────────────────────────────────────────
# bin/panel/network-applet.sh (the XFCE genmon network applet) loads PNGs
# directly from assets/panel-icons/ by path — it does NOT go through the
# icon theme. Rasterize the relevant status icons there too so the applet
# stays in sync with the canonical SVG design above (otherwise the PNGs
# drift into a different look, e.g. solid filled cones vs. arc bars).
PANEL_PNG_DIR = ROOT.parent.parent / "panel-icons" # assets/panel-icons
PANEL_PNG_SIZE = 22
PANEL_PNG_NAMES = [
"network-wireless-signal-none",
"network-wireless-signal-weak",
"network-wireless-signal-ok",
"network-wireless-signal-good",
"network-wireless-signal-excellent",
"network-wired",
"network-offline",
]
def _rasterize_panel_pngs() -> int:
import subprocess
if not PANEL_PNG_DIR.is_dir():
return 0
n = 0
for name in PANEL_PNG_NAMES:
svg_path = OUT / f"{name}.svg"
if not svg_path.exists():
continue
subprocess.run(
["inkscape", str(svg_path), "--export-type=png",
f"--export-filename={PANEL_PNG_DIR / (name + '.png')}",
f"--export-width={PANEL_PNG_SIZE}",
f"--export-height={PANEL_PNG_SIZE}",
"--export-background-opacity=0"],
check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
)
n += 1
return n
def main() -> None:
OUT.mkdir(parents=True, exist_ok=True)
# Sweep any leftover Papirus fallback symlinks from the same dir.
cleaned = 0
for entry in OUT.iterdir():
if entry.is_symlink():
entry.unlink()
cleaned += 1
for name, body in ICONS.items():
(OUT / f"{name}.svg").write_text(body)
print(f"Cleared {cleaned} symlinks, wrote {len(ICONS)} SVGs to {OUT}")
n = _rasterize_panel_pngs()
print(f"Rasterized {n} genmon panel PNGs to {PANEL_PNG_DIR}")
if __name__ == "__main__":
main()
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<defs>
<radialGradient id="ring" cx="50%" cy="30%" r="70%">
<stop offset="0%" stop-color="#8cc63f"/>
<stop offset="100%" stop-color="#5a9020"/>
</radialGradient>
<radialGradient id="frame" cx="50%" cy="30%" r="70%">
<stop offset="0%" stop-color="#b040c0"/>
<stop offset="100%" stop-color="#4a0050"/>
</radialGradient>
</defs>
<!-- Lime outer ring -->
<rect x="0" y="0" width="128" height="128" rx="30" fill="url(#ring)"/>
<!-- Purple gradient frame inset 8px from ring -->
<rect x="8" y="8" width="112" height="112" rx="26" fill="url(#frame)"/>
<!-- Dark inner border -->
<rect x="12" y="12" width="104" height="104" rx="22" fill="#120018"/>
<!-- App icon face -->
<rect x="18" y="18" width="92" height="92" rx="16" fill="#262626"/>
</svg>

After

Width:  |  Height:  |  Size: 933 B

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<defs>
<radialGradient id="frame" cx="50%" cy="30%" r="70%">
<stop offset="0%" stop-color="#b040c0"/>
<stop offset="100%" stop-color="#4a0050"/>
</radialGradient>
</defs>
<!-- Outer purple gradient frame -->
<rect x="0" y="0" width="128" height="128" rx="30" fill="url(#frame)"/>
<!-- Dark inner border -->
<rect x="8" y="8" width="112" height="112" rx="24" fill="#120018"/>
<!-- App icon face -->
<rect x="14" y="14" width="100" height="100" rx="18" fill="#262626"/>
</svg>

After

Width:  |  Height:  |  Size: 642 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 994 B

After

Width:  |  Height:  |  Size: 994 B

View File

Before

Width:  |  Height:  |  Size: 802 B

After

Width:  |  Height:  |  Size: 802 B

View File

Before

Width:  |  Height:  |  Size: 942 B

After

Width:  |  Height:  |  Size: 942 B

View File

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 981 B

View File

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 247 KiB

View File

Before

Width:  |  Height:  |  Size: 802 B

After

Width:  |  Height:  |  Size: 802 B

View File

Before

Width:  |  Height:  |  Size: 1014 B

After

Width:  |  Height:  |  Size: 1014 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 776 B