New app icon: live heartbeat trace
Some checks failed
Build & Release APK / build (push) Has been cancelled

Replaces the outlined-ECG-over-a-heart icon with a bold heartbeat trace in
the dashboard's blue → violet → pink gradient. It fades in from the left
and ends in a glowing "now" dot, like the live point on a chart, over the
app's near-black with a violet glow. The Android foreground is sized to the
66dp safe circle, the themed (monochrome) glyph is solid and a little
smaller, and the adaptive background is now the gradient.

assets/icon-src/make.py (resvg + magick) regenerates every size from one
definition; glyph.svg is replaced by foreground/background/splash.svg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
marcus
2026-11-19 23:45:47 -08:00
parent 65bf540ea0
commit 694e180855
13 changed files with 121 additions and 78 deletions

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><defs><radialGradient id="hb" cx="50%" cy="44%" r="72%"><stop offset="0" stop-color="#1d1a33"/><stop offset="1" stop-color="#0b0b0e"/></radialGradient></defs><rect width="1024" height="1024" fill="url(#hb)"/></svg>

After

Width:  |  Height:  |  Size: 306 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><defs><linearGradient id="pl" gradientUnits="userSpaceOnUse" x1="205.1" y1="0" x2="711.9" y2="0"><stop offset="0" stop-color="#3fc8f2"/><stop offset="0.5" stop-color="#7c6cf7"/><stop offset="1" stop-color="#f06bc0"/></linearGradient><linearGradient id="fadeg" gradientUnits="userSpaceOnUse" x1="205.1" y1="0" x2="329.0" y2="0"><stop offset="0" stop-color="#fff" stop-opacity="0.05"/><stop offset="1" stop-color="#fff"/></linearGradient><mask id="fm" maskUnits="userSpaceOnUse" x="0" y="0" width="1024" height="1024"><rect width="1024" height="1024" fill="url(#fadeg)"/></mask><filter id="bl" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="32.5"/></filter><filter id="bl2" x="-100%" y="-100%" width="300%" height="300%"><feGaussianBlur stdDeviation="53.2"/></filter><radialGradient id="dot"><stop offset="0" stop-color="#ffffff"/><stop offset="0.55" stop-color="#ffe6f4"/><stop offset="1" stop-color="#f06bc0"/></radialGradient></defs><g mask="url(#fm)" filter="url(#bl)" opacity="0.75"><path d="M205.1 530.9 L329.0 530.9 L368.4 490.7 L402.2 530.9 L430.3 530.9 L481.0 294.4 L537.3 724.9 L582.4 483.6 L610.6 530.9 L711.9 530.9" fill="none" stroke="url(#pl)" stroke-width="59.1" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="711.9" cy="530.9" r="112.4" fill="#f06bc0" opacity="0.55" filter="url(#bl2)"/><g mask="url(#fm)"><path d="M205.1 530.9 L329.0 530.9 L368.4 490.7 L402.2 530.9 L430.3 530.9 L481.0 294.4 L537.3 724.9 L582.4 483.6 L610.6 530.9 L711.9 530.9" fill="none" stroke="url(#pl)" stroke-width="59.1" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="711.9" cy="530.9" r="79.8" fill="none" stroke="#f06bc0" stroke-opacity="0.35" stroke-width="13.0"/><circle cx="711.9" cy="530.9" r="54.4" fill="url(#dot)"/></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,25 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
<defs>
<linearGradient id="heart" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#8a86ff"/>
<stop offset="100%" stop-color="#5b57d6"/>
</linearGradient>
</defs>
<!-- glyph only, transparent bg, scaled into the adaptive-icon safe zone -->
<g transform="translate(512 512) scale(0.62) translate(-512 -512)">
<path d="M512 812
C 402 726, 232 616, 210 462
C 196 360, 268 268, 372 268
C 436 268, 486 304, 512 356
C 538 304, 588 268, 652 268
C 756 268, 828 360, 814 462
C 792 616, 622 726, 512 812 Z"
fill="url(#heart)"/>
<polyline points="60,520 330,520 385,520 425,414 478,626 528,368 576,556 608,520 964,520"
fill="none" stroke="#0d0d0f" stroke-width="58"
stroke-linecap="round" stroke-linejoin="round"/>
<polyline points="60,520 330,520 385,520 425,414 478,626 528,368 576,556 608,520 964,520"
fill="none" stroke="#ffffff" stroke-width="26"
stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,32 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"> <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><defs><radialGradient id="hb" cx="50%" cy="44%" r="72%"><stop offset="0" stop-color="#1d1a33"/><stop offset="1" stop-color="#0b0b0e"/></radialGradient><linearGradient id="pl" gradientUnits="userSpaceOnUse" x1="122.9" y1="0" x2="823.3" y2="0"><stop offset="0" stop-color="#3fc8f2"/><stop offset="0.5" stop-color="#7c6cf7"/><stop offset="1" stop-color="#f06bc0"/></linearGradient><linearGradient id="fadeg" gradientUnits="userSpaceOnUse" x1="122.9" y1="0" x2="294.1" y2="0"><stop offset="0" stop-color="#fff" stop-opacity="0.05"/><stop offset="1" stop-color="#fff"/></linearGradient><mask id="fm" maskUnits="userSpaceOnUse" x="0" y="0" width="1024" height="1024"><rect width="1024" height="1024" fill="url(#fadeg)"/></mask><filter id="bl" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="44.9"/></filter><filter id="bl2" x="-100%" y="-100%" width="300%" height="300%"><feGaussianBlur stdDeviation="73.5"/></filter><radialGradient id="dot"><stop offset="0" stop-color="#ffffff"/><stop offset="0.55" stop-color="#ffe6f4"/><stop offset="1" stop-color="#f06bc0"/></radialGradient></defs><rect width="1024" height="1024" fill="url(#hb)"/><g mask="url(#fm)" filter="url(#bl)" opacity="0.75"><path d="M122.9 538.1 L294.1 538.1 L348.6 482.6 L395.3 538.1 L434.2 538.1 L504.2 211.3 L582.0 806.2 L644.3 472.8 L683.2 538.1 L823.3 538.1" fill="none" stroke="url(#pl)" stroke-width="81.7" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="823.3" cy="538.1" r="155.3" fill="#f06bc0" opacity="0.55" filter="url(#bl2)"/><g mask="url(#fm)"><path d="M122.9 538.1 L294.1 538.1 L348.6 482.6 L395.3 538.1 L434.2 538.1 L504.2 211.3 L582.0 806.2 L644.3 472.8 L683.2 538.1 L823.3 538.1" fill="none" stroke="url(#pl)" stroke-width="81.7" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="823.3" cy="538.1" r="126.7" fill="none" stroke="#f06bc0" stroke-opacity="0.35" stroke-width="18.0"/><circle cx="823.3" cy="538.1" r="75.2" fill="url(#dot)"/></svg>
<defs>
<radialGradient id="bg" cx="50%" cy="38%" r="75%">
<stop offset="0%" stop-color="#1e1e26"/>
<stop offset="100%" stop-color="#0d0d0f"/>
</radialGradient>
<linearGradient id="heart" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#8a86ff"/>
<stop offset="100%" stop-color="#5b57d6"/>
</linearGradient>
</defs>
<rect width="1024" height="1024" fill="url(#bg)"/>
<!-- heart -->
<path d="M512 812
C 402 726, 232 616, 210 462
C 196 360, 268 268, 372 268
C 436 268, 486 304, 512 356
C 538 304, 588 268, 652 268
C 756 268, 828 360, 814 462
C 792 616, 622 726, 512 812 Z"
fill="url(#heart)"/>
<!-- ECG pulse across the heart -->
<polyline points="120,520 330,520 385,520 425,414 478,626 528,368 576,556 608,520 904,520"
fill="none" stroke="#0d0d0f" stroke-width="58"
stroke-linecap="round" stroke-linejoin="round"/>
<polyline points="120,520 330,520 385,520 425,414 478,626 528,368 576,556 608,520 904,520"
fill="none" stroke="#ffffff" stroke-width="26"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

116
assets/icon-src/make.py Normal file
View File

@@ -0,0 +1,116 @@
#!/usr/bin/env python3
"""Generate the Health app icon set from one mark: a live heartbeat trace.
python3 assets/icon-src/make.py # needs `resvg` and `magick` (Homebrew)
The mark is a bold ECG trace in the dashboard's blue → violet → pink gradient
that fades in from the left and ends in a glowing "now" dot, like the live
point on a chart. The background is the app's near-black (#0d0d0f) with a
violet glow.
Writes the SVG sources next to this file and the PNGs into assets/images/:
icon.png 1024 opaque (iOS + fallback)
android-icon-background.png 1024 opaque (adaptive background)
android-icon-foreground.png 1024 alpha (adaptive foreground, inside the 66dp safe zone)
android-icon-monochrome.png 1024 alpha (themed icon, white glyph)
splash-icon.png 512 alpha (splash, glyph only)
favicon.png 64 opaque (web)
"""
import os
import subprocess
HERE = os.path.dirname(os.path.abspath(__file__))
IMAGES = os.path.join(HERE, '..', 'images')
BG_CENTER, BG_EDGE = '#1d1a33', '#0b0b0e'
TRACE = [(0, '#3fc8f2'), (0.5, '#7c6cf7'), (1, '#f06bc0')] # blue → accent violet → pink
# x in 0..1 across the glyph, y in -1..1 (negative = up)
PULSE = [(0.00, 0), (0.22, 0), (0.29, -0.17), (0.35, 0.0), (0.40, 0),
(0.49, -1.0), (0.59, 0.82), (0.67, -0.20), (0.72, 0), (0.90, 0)]
def svg(size, body, defs=''):
return (f'<svg xmlns="http://www.w3.org/2000/svg" width="{size}" height="{size}" '
f'viewBox="0 0 {size} {size}"><defs>{defs}</defs>{body}</svg>\n')
def background(size):
defs = (f'<radialGradient id="hb" cx="50%" cy="44%" r="72%">'
f'<stop offset="0" stop-color="{BG_CENTER}"/><stop offset="1" stop-color="{BG_EDGE}"/></radialGradient>')
return defs, f'<rect width="{size}" height="{size}" fill="url(#hb)"/>'
def pulse(size, scale, mono=False, glow=True, shift=0.0, halo=1.55):
"""scale = glyph width as a fraction of the canvas."""
w = size * scale
amp, stroke = w * 0.42, w * 0.105
c = size / 2
left = c - shift * w - w / 2
pts = [(left + x * w, c + amp * 0.08 + y * amp) for x, y in PULSE]
if mono: # no fade in a single colour: start the trace later instead
pts = [(left + 0.12 * w, pts[0][1])] + pts[2:]
d = 'M' + ' L'.join(f'{x:.1f} {y:.1f}' for x, y in pts)
ex, ey = pts[-1]
line = (f'<path d="{d}" fill="none" stroke="{{s}}" stroke-width="{stroke:.1f}" '
f'stroke-linecap="round" stroke-linejoin="round"/>')
if mono:
return '', line.format(s='#fff') + f'<circle cx="{ex:.1f}" cy="{ey:.1f}" r="{stroke * 0.95:.1f}" fill="#fff"/>'
stops = ''.join(f'<stop offset="{p}" stop-color="{col}"/>' for p, col in TRACE)
defs = (f'<linearGradient id="pl" gradientUnits="userSpaceOnUse" x1="{left:.1f}" y1="0" x2="{ex:.1f}" y2="0">{stops}</linearGradient>'
f'<linearGradient id="fadeg" gradientUnits="userSpaceOnUse" x1="{left:.1f}" y1="0" x2="{left + w * 0.22:.1f}" y2="0">'
f'<stop offset="0" stop-color="#fff" stop-opacity="0.05"/><stop offset="1" stop-color="#fff"/></linearGradient>'
f'<mask id="fm" maskUnits="userSpaceOnUse" x="0" y="0" width="{size}" height="{size}">'
f'<rect width="{size}" height="{size}" fill="url(#fadeg)"/></mask>'
f'<filter id="bl" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="{stroke * 0.55:.1f}"/></filter>'
f'<filter id="bl2" x="-100%" y="-100%" width="300%" height="300%"><feGaussianBlur stdDeviation="{stroke * 0.9:.1f}"/></filter>'
f'<radialGradient id="dot"><stop offset="0" stop-color="#ffffff"/><stop offset="0.55" stop-color="#ffe6f4"/>'
f'<stop offset="1" stop-color="{TRACE[-1][1]}"/></radialGradient>')
trace = line.format(s='url(#pl)')
body = ''
if glow:
body += f'<g mask="url(#fm)" filter="url(#bl)" opacity="0.75">{trace}</g>'
body += f'<circle cx="{ex:.1f}" cy="{ey:.1f}" r="{stroke * 1.9:.1f}" fill="{TRACE[-1][1]}" opacity="0.55" filter="url(#bl2)"/>'
body += f'<g mask="url(#fm)">{trace}</g>'
body += (f'<circle cx="{ex:.1f}" cy="{ey:.1f}" r="{stroke * halo:.1f}" fill="none" stroke="{TRACE[-1][1]}" '
f'stroke-opacity="0.35" stroke-width="{stroke * 0.22:.1f}"/>')
body += f'<circle cx="{ex:.1f}" cy="{ey:.1f}" r="{stroke * 0.92:.1f}" fill="url(#dot)"/>'
return defs, body
def main():
bd, bb = background(1024)
# iOS: full-bleed, glyph spans 76% (Apple rounds the corners itself)
gd, gb = pulse(1024, 0.76)
sources = {
'icon': (1024, svg(1024, bb + gb, bd + gd)),
'background': (1024, svg(1024, bb, bd)),
# Android adaptive: shifted left (the trace fades in) so the dot + halo clear the 66dp safe circle
'foreground': (1024, svg(1024, *reversed(pulse(1024, 0.55, shift=0.045, halo=1.35)))),
# themed icons read best a little smaller than the colour glyph
'monochrome': (1024, svg(1024, *reversed(pulse(1024, 0.46, mono=True, glow=False, shift=0.045)))),
'splash': (512, svg(512, *reversed(pulse(512, 0.94, glow=False)))),
}
out = {
'icon': 'icon.png', 'background': 'android-icon-background.png',
'foreground': 'android-icon-foreground.png', 'monochrome': 'android-icon-monochrome.png',
'splash': 'splash-icon.png',
}
for name, (size, text) in sources.items():
src = os.path.join(HERE, f'{name}.svg')
with open(src, 'w') as f:
f.write(text)
png = os.path.join(IMAGES, out[name])
subprocess.run(['resvg', '-w', str(size), '-h', str(size), src, png], check=True)
# iOS rejects icons with an alpha channel; the web favicon is the icon at 64px
icon = os.path.join(IMAGES, 'icon.png')
subprocess.run(['magick', icon, '-background', BG_EDGE, '-alpha', 'remove', '-alpha', 'off', icon], check=True)
bgp = os.path.join(IMAGES, 'android-icon-background.png')
subprocess.run(['magick', bgp, '-alpha', 'off', bgp], check=True)
subprocess.run(['magick', icon, '-resize', '64x64', os.path.join(IMAGES, 'favicon.png')], check=True)
print('wrote', ', '.join(out.values()), 'favicon.png')
if __name__ == '__main__':
main()

View File

@@ -1,21 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"> <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024"><defs></defs><path d="M311.8 527.8 L391.9 494.2 L420.1 527.8 L443.7 527.8 L486.1 330.0 L533.2 690.1 L570.9 488.3 L594.4 527.8 L679.2 527.8" fill="none" stroke="#fff" stroke-width="49.5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="679.2" cy="527.8" r="47.0" fill="#fff"/></svg>
<defs>
<mask id="cut">
<rect width="1024" height="1024" fill="white"/>
<polyline points="60,520 330,520 385,520 425,414 478,626 528,368 576,556 608,520 964,520"
fill="none" stroke="black" stroke-width="58"
stroke-linecap="round" stroke-linejoin="round"/>
</mask>
</defs>
<!-- single-silhouette version: heart with the ECG line cut out (launcher tints it) -->
<g transform="translate(512 512) scale(0.62) translate(-512 -512)">
<path d="M512 812
C 402 726, 232 616, 210 462
C 196 360, 268 268, 372 268
C 436 268, 486 304, 512 356
C 538 304, 588 268, 652 268
C 756 268, 828 360, 814 462
C 792 616, 622 726, 512 812 Z"
fill="#ffffff" mask="url(#cut)"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 881 B

After

Width:  |  Height:  |  Size: 384 B

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><defs><linearGradient id="pl" gradientUnits="userSpaceOnUse" x1="15.4" y1="0" x2="448.5" y2="0"><stop offset="0" stop-color="#3fc8f2"/><stop offset="0.5" stop-color="#7c6cf7"/><stop offset="1" stop-color="#f06bc0"/></linearGradient><linearGradient id="fadeg" gradientUnits="userSpaceOnUse" x1="15.4" y1="0" x2="121.2" y2="0"><stop offset="0" stop-color="#fff" stop-opacity="0.05"/><stop offset="1" stop-color="#fff"/></linearGradient><mask id="fm" maskUnits="userSpaceOnUse" x="0" y="0" width="512" height="512"><rect width="512" height="512" fill="url(#fadeg)"/></mask><filter id="bl" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="27.8"/></filter><filter id="bl2" x="-100%" y="-100%" width="300%" height="300%"><feGaussianBlur stdDeviation="45.5"/></filter><radialGradient id="dot"><stop offset="0" stop-color="#ffffff"/><stop offset="0.55" stop-color="#ffe6f4"/><stop offset="1" stop-color="#f06bc0"/></radialGradient></defs><g mask="url(#fm)"><path d="M15.4 272.2 L121.2 272.2 L154.9 237.8 L183.8 272.2 L207.9 272.2 L251.2 70.0 L299.3 437.9 L337.8 231.7 L361.9 272.2 L448.5 272.2" fill="none" stroke="url(#pl)" stroke-width="50.5" stroke-linecap="round" stroke-linejoin="round"/></g><circle cx="448.5" cy="272.2" r="78.3" fill="none" stroke="#f06bc0" stroke-opacity="0.35" stroke-width="11.1"/><circle cx="448.5" cy="272.2" r="46.5" fill="url(#dot)"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 21 KiB