The app's own mark: assets/logoym.png becomes the icon, the brand, and the Start button
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Every icon the app ships now comes from one source image, generated rather than drawn: frontend/scripts/build-app-icons.mjs writes public/icon-512.png (declared "any maskable" in the manifest, hence an opaque square), public/icon-180.png (iOS home screen and favicon), public/logo.png (transparent, for the UI) and resources/icon.png (the @capacitor/assets source for the native shells). The file was a PNG despite its .jpeg name — it has a real alpha channel — so it is assets/logoym.png now. It is the file the owner dropped in, and the icons are derived from it, which is what keeps the PWA icon, the home-screen icon, the in-app mark and the native icon from ever drifting apart. The emblem is dark green (its most common colour is #031808, its accents are greens too) with transparent corners, which decides two things. The icon squares are filled with that same dark green and the mark is centred at 88% of the canvas: the corners blend into it, the maskable safe circle stays clean, and a transparent icon can't disappear on a dark home screen. And the tab bar's Start button keeps the accent as a RING instead of a fill — on the old lime disc the emblem would have read as a dark blob. The ring still marks the primary action, and it still turns orange with the pulse while a session is running, with the label underneath saying Start / Resume / Workout, so nothing that button communicated was lost by swapping its glyph for the mark. Login, the mobile onboarding and the boot placeholder in App.jsx showed the dumbbell glyph as a stand-in for the brand; they all show the mark now, so the app cannot flash a different logo on its way in. Three now-unused Icon imports go with it. Icons are written as 256-colour palettes: measured against the full RGBA versions the mean per-channel error is 1.5/255, invisible, and the files are ~2.5× smaller (161 KB for everything the browser downloads, against 532 KB of source). Transparency survives it as the palette's own alpha entries — verified, not assumed. docs/MOBILE.md says how to regenerate and why resources/icon.svg is now inert (@capacitor/assets tries .png before .svg, so the new icon.png wins), and that comment is repeated in the SVG itself so nobody edits the file that no longer decides anything.
This commit is contained in:
1 parent
ba37ef8a44
commit
c150101232
14 files changed
+146
-25
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
@@ -1,7 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 512 512">
|
||||
<!-- App-icon source == the PWA icon (public/icon-512.png), geometry traced 1:1 so the
|
||||
native app, the home-screen PWA and the website favicon all show the same icon.
|
||||
Generate platform icons + splash via `npx @capacitor/assets generate` — docs/MOBILE.md. -->
|
||||
<!-- The dumbbell glyph this app used before it had a brand mark. NOTHING GENERATES FROM THIS
|
||||
ANY MORE: resources/icon.png (written by frontend/scripts/build-app-icons.mjs, from the
|
||||
image in assets/) sits beside it and wins — @capacitor/assets tries .png before .svg. It
|
||||
is kept as the vector drawing; see docs/MOBILE.md, "App icons & splash screens". -->
|
||||
<rect width="512" height="512" fill="#0c0e12"/>
|
||||
<g fill="#a3e635">
|
||||
<rect x="80" y="242" width="352" height="28"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 814 B |
Reference in new issue
Block a user