Cards you can see through, a splash that waits, and iOS launch screens
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
**The transparency was there and invisible.** `--glass` was a near-black at 55% alpha, and a dark film over a dark background reads as solid no matter what the alpha says — so the cards looked exactly as opaque as before. It is 34% now, the family tint weighs a little more (14%) and the blur is 10px instead of 16: heavy blur flattens the backdrop into one colour, which hides the very thing that is supposed to show through. The opaque `@supports` fallback is gone as well. It was copied from the tab bar, where it is right — the bar floats over scrolling text — and it is wrong here: a card sits in the page flow and the only thing behind it is the aura. On any device that took that branch, the cards were solid by construction. **The splash now waits, which is what a launch screen does.** It stays until the boot is finished, with a floor of 1.1s so it can actually be read (a warm boot takes milliseconds, and a splash that lasts that long is a flicker) and a ceiling of 6s so a request that never answers cannot hold anybody behind a photograph — their workouts are already local. The mark pulses slowly while it waits, so it looks like a screen that is loading rather than a photograph that is stuck. **The long white is iOS, before any of our code runs.** The deployed HTML already carries the aura's base colour inline, so what is left is the installed web app's own launch screen: iOS paints it before the page exists, and without an `apple-touch-startup-image` that matches the device it paints nothing. Fourteen entries now cover the phone and tablet sizes the app is opened on, cropped from the same photograph (each device fetches only its own). build-app-icons.mjs fails when the sizes it generates and the sizes index.html links disagree, because a missing entry is the blank screen this exists to remove.
This commit is contained in:
1 parent
3908dc524a
commit
9e580c4794
20 files changed
+150
-41
No files matched your search
@@ -88,6 +88,13 @@ not committed — 12 MB off a camera) is what `scripts/build-app-icons.mjs` turn
|
||||
base colour, fitted rather than cropped) for `@capacitor/assets`. Drop a replacement at that path
|
||||
and the script regenerates both; without it, it says so and skips them.
|
||||
|
||||
iOS launch screens are the same source: 14 `apple-touch-startup-image` entries in
|
||||
`frontend/index.html`, one per device pixel size, cropped `cover` from the photograph by the same
|
||||
script. They matter because an installed iOS web app paints its own screen *before* any of our code
|
||||
runs — without a matching entry that screen is blank, which is the white flash on open that no CSS
|
||||
can reach. The script fails if the sizes it generates and the sizes `index.html` links ever drift:
|
||||
iOS answers a missing launch image with the blank screen, so a stale list is worse than no list.
|
||||
|
||||
Then generate the platform assets from it:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user