Mockup: Backdrop & page settings in every app #921

Open
opened 2026-11-04 09:17:46 +00:00 by kayg · 2 comments
Owner

kayg 11-04: "The page and the backdrop settings don't seem to apply universally." Branch mock/appearance-all (based on review/calendar-2). Settings › Appearance › Backdrop & page is now read by every app.

Where the settings live

  • Store: src/lib/appearance.svelte.ts (account: opacity, blur, bgBlurOn/bgBlur, bgDimOn/bgDim; saved in localStorage cal.appearance). Backdrop picture: v.backdrop.
  • Page (See-through, Frost): before, only Notes' Editor read them (.page.see-through with inline --page-opacity/--page-blur), plus Shell's frame ring and AI's own inline copy.
  • Backdrop (picture, blur, dim): painted by style/paint.svelte.ts (bgVars), which only ran while a note's Editor was mounted. In every other app blur/dim were forced to none/0.

Fix (one glass)

  • App.svelte writes --page-opacity and --page-filter (frost, none while solid) on the root from account; styles/glass.css adds --page-glass and two classes, .glass-page (surface wears the glass) and .glass-page-under (glass on a layer behind children that have glass of their own: pills, bars). A note's own Style still wins on its own page.
  • paint.svelte.ts: when no note is open, the account's backdrop blur/dim/picture is painted (paintAccountBackground). So changing Backdrop settings updates all apps live.
  • Shell follows the account (not today's note's own style) for non-note apps.

Audit

Surface Before: reads settings? After
Notes page (Editor .page) yes (own inline vars) yes, unchanged (account vars inherited if note has none)
Notes list/sidebar panes, frame ring (Shell) ring yes; panes fixed glass tokens same (panes are the shared --glass-pane, by design)
Notes phone yes (data-page-look) unchanged
Backdrop picture blur/dim (all non-Notes apps) no (forced off) yes (paintAccountBackground)
Mail desktop page ring only; page area transparent, no frost ring + frost via account; same look at defaults
Mail phone (.phone) no, solid paper yes (glass-page-under)
Calendar desktop page, header, Timeline, Month no, solid paper yes (glass-page)
Calendar phone (day, agenda, month) no yes
Contacts page (desktop) / phone card screen no, solid paper yes
Tasks page / phone screens no, solid paper yes
Automations page / phone no (.page paper) yes
Settings page (+ sticky preview strip) / phone no, solid paper yes
AI page (desktop, phone) yes (own inline copy of the vars) unchanged, already same values
Sidebar/list panes of every app fixed --glass-pane unchanged by design (one pane glass)
Sheets, popovers, bars, menus floating glass token --glass-float (not the page setting) unchanged: they are floating glass, kayg-approved
Cards inside pages (Mail message, Contacts fields, chips) --paper tints unchanged (approved per-surface looks)

Defaults (opacity 0.85, frost 18): same look as before in Mail/AI; Contacts/Calendar/Tasks/Automations/Settings pages now carry the 15% see-through they always should have had. Note: with the default backdrop settings the backdrop's own blur/dim (art dims 20%) now also show behind non-Notes apps, as in Notes.

Legibility

Checked at default, max see-through (5%, frost 40), see-through + frost off, and opaque, light and dark, desktop and phone, for all 8 apps (grids below; backdrop = default "Calm"). Text stays legible everywhere; at ≤30% opacity pages get the same soft text halo as notes (data-page-faint). Not checked: busy photo backdrops at max see-through (the Style sheet's readability guard applies per note only).

Frames (Mac VM, WebKit, headless, 1440x620, wheel scroll 90 steps; ABAB, 12 runs each)

Max see-through + frost 40:

Case before p50 / p95 / max / >20 ms / >25 ms after
Mail thread 17 / 20 / 30 / 85 / 3 (of 2275) 17 / 21 / 25 / 114 / 0 (of 2269)
Notes list 17 / 21 / 25 / 113 / 0 17 / 21 / 25 / 120 / 0
Default settings (4 runs each): Mail thread before >25: 0-1, max 25-33; after max 25-26; Notes list flat (max 23-25 both).
Reading: no frame over 25 ms after (before had 3 in Mail); Mail has more 20-25 ms frames (5.0% vs 3.7%) since its page now actually frosts. Notes unchanged. Verified the scroller moved (Mail 195 px, Notes list 65 px).
kayg 11-04: "The page and the backdrop settings don't seem to apply universally." Branch `mock/appearance-all` (based on review/calendar-2). Settings › Appearance › Backdrop & page is now read by every app. ## Where the settings live - Store: `src/lib/appearance.svelte.ts` (`account`: opacity, blur, bgBlurOn/bgBlur, bgDimOn/bgDim; saved in localStorage `cal.appearance`). Backdrop picture: `v.backdrop`. - **Page** (See-through, Frost): before, only Notes' Editor read them (`.page.see-through` with inline `--page-opacity/--page-blur`), plus Shell's frame ring and AI's own inline copy. - **Backdrop** (picture, blur, dim): painted by `style/paint.svelte.ts` (`bgVars`), which only ran while a note's Editor was mounted. In every other app blur/dim were forced to none/0. ## Fix (one glass) - `App.svelte` writes `--page-opacity` and `--page-filter` (frost, `none` while solid) on the root from `account`; `styles/glass.css` adds `--page-glass` and two classes, `.glass-page` (surface wears the glass) and `.glass-page-under` (glass on a layer behind children that have glass of their own: pills, bars). A note's own Style still wins on its own page. - `paint.svelte.ts`: when no note is open, the account's backdrop blur/dim/picture is painted (`paintAccountBackground`). So changing Backdrop settings updates all apps live. - `Shell` follows the account (not today's note's own style) for non-note apps. ## Audit | Surface | Before: reads settings? | After | |---|---|---| | Notes page (Editor `.page`) | yes (own inline vars) | yes, unchanged (account vars inherited if note has none) | | Notes list/sidebar panes, frame ring (Shell) | ring yes; panes fixed glass tokens | same (panes are the shared `--glass-pane`, by design) | | Notes phone | yes (`data-page-look`) | unchanged | | Backdrop picture blur/dim (all non-Notes apps) | **no** (forced off) | yes (`paintAccountBackground`) | | Mail desktop page | ring only; page area transparent, no frost | ring + frost via account; same look at defaults | | Mail phone (`.phone`) | **no**, solid paper | yes (`glass-page-under`) | | Calendar desktop page, header, Timeline, Month | **no**, solid paper | yes (`glass-page`) | | Calendar phone (day, agenda, month) | **no** | yes | | Contacts page (desktop) / phone card screen | **no**, solid paper | yes | | Tasks page / phone screens | **no**, solid paper | yes | | Automations page / phone | **no** (`.page` paper) | yes | | Settings page (+ sticky preview strip) / phone | **no**, solid paper | yes | | AI page (desktop, phone) | yes (own inline copy of the vars) | unchanged, already same values | | Sidebar/list panes of every app | fixed `--glass-pane` | unchanged by design (one pane glass) | | Sheets, popovers, bars, menus | floating glass token `--glass-float` (not the page setting) | unchanged: they are floating glass, kayg-approved | | Cards inside pages (Mail message, Contacts fields, chips) | `--paper` tints | unchanged (approved per-surface looks) | Defaults (opacity 0.85, frost 18): same look as before in Mail/AI; Contacts/Calendar/Tasks/Automations/Settings pages now carry the 15% see-through they always should have had. Note: with the default backdrop settings the backdrop's own blur/dim (art dims 20%) now also show behind non-Notes apps, as in Notes. ## Legibility Checked at default, max see-through (5%, frost 40), see-through + frost off, and opaque, light and dark, desktop and phone, for all 8 apps (grids below; backdrop = default "Calm"). Text stays legible everywhere; at ≤30% opacity pages get the same soft text halo as notes (`data-page-faint`). Not checked: busy photo backdrops at max see-through (the Style sheet's readability guard applies per note only). ## Frames (Mac VM, WebKit, headless, 1440x620, wheel scroll 90 steps; ABAB, 12 runs each) Max see-through + frost 40: | Case | before p50 / p95 / max / >20 ms / >25 ms | after | |---|---|---| | Mail thread | 17 / 20 / 30 / 85 / 3 (of 2275) | 17 / 21 / 25 / 114 / 0 (of 2269) | | Notes list | 17 / 21 / 25 / 113 / 0 | 17 / 21 / 25 / 120 / 0 | Default settings (4 runs each): Mail thread before >25: 0-1, max 25-33; after max 25-26; Notes list flat (max 23-25 both). Reading: no frame over 25 ms after (before had 3 in Mail); Mail has more 20-25 ms frames (5.0% vs 3.7%) since its page now actually frosts. Notes unchanged. Verified the scroller moved (Mail 195 px, Notes list 65 px).
Author
Owner

Shot grids (rows: Notes, Mail, AI, Tasks, Contacts, Calendar, Automations, Settings; columns: default, max see-through + frost, see-through + frost off, opaque). before = review/calendar-2, after = this branch.

grid-after-d-dark.png
grid-after-d-dark.png

grid-after-d-light.png
grid-after-d-light.png

grid-after-p-dark.png
grid-after-p-dark.png

grid-after-p-light.png
grid-after-p-light.png

grid-before-d-dark.png
grid-before-d-dark.png

grid-before-d-light.png
grid-before-d-light.png

grid-before-p-dark.png
grid-before-p-dark.png

grid-before-p-light.png
grid-before-p-light.png

Shot grids (rows: Notes, Mail, AI, Tasks, Contacts, Calendar, Automations, Settings; columns: default, max see-through + frost, see-through + frost off, opaque). before = review/calendar-2, after = this branch. **grid-after-d-dark.png** ![grid-after-d-dark.png](https://git.kayg.org/attachments/76a01b65-0483-4f62-8a77-33705e001657) **grid-after-d-light.png** ![grid-after-d-light.png](https://git.kayg.org/attachments/e52e3506-53fe-4841-b15a-73d42dd817f0) **grid-after-p-dark.png** ![grid-after-p-dark.png](https://git.kayg.org/attachments/07068e25-ed1f-488b-b9e1-974c9e3b6a0e) **grid-after-p-light.png** ![grid-after-p-light.png](https://git.kayg.org/attachments/03df51b5-d4b2-4127-bd71-eea51cb44f93) **grid-before-d-dark.png** ![grid-before-d-dark.png](https://git.kayg.org/attachments/208aeb11-b326-4865-82bb-68aca53aecc7) **grid-before-d-light.png** ![grid-before-d-light.png](https://git.kayg.org/attachments/90300de0-197a-41dc-84e3-9220a0c1c26d) **grid-before-p-dark.png** ![grid-before-p-dark.png](https://git.kayg.org/attachments/b2d34f30-c657-412d-8318-b4cbd5a02b02) **grid-before-p-light.png** ![grid-before-p-light.png](https://git.kayg.org/attachments/0b12afb4-0dc9-4eda-aefe-8eb8cf62e291)
Author
Owner

Follow-up on the rebased head (see SHA at the end)

What changed: the first version put the frost filter on scrolling pages themselves (Contacts .page, Calendar's Timeline). A filter on a scroller is a backdrop root above its sticky/floating children, which is what the repo's own glass-portal rule warns against. Now: Contacts has a separate glass-layer sibling behind its page, Calendar uses a glass-page-under layer behind its non-scrolling container, and the scrollers carry no filter and a transparent background. Mail desktop never got a layer from this change (its page is the Shell ring, unchanged).

Mail 20–25 ms frames (Mac VM, WebKit, wheel scroll, max see-through + frost 40, ABAB, 12 runs each, scroller moved 195 px):

build frames >20 ms >25 ms p95 (median of runs) max
before (origin/review/calendar-2 parent) 2266 106 2 20 39
after (this head) 2269 107 1 20 26

The earlier 85 → 114 was run-to-run noise: the same unchanged "before" build measured 29, 45, 32, 47, 37, 26 over-20-ms frames per 4-run block in the control (26–47). Dimming the backdrop off ("nodim") also made no difference (105 vs 103), so there is nothing to remove in Mail desktop. Phone Mail (a frosted layer behind the screen, scroller not under it; scroller moved 112 px): 64 vs 62 frames over 20 ms of 1461/1452, 0 over 25 ms both. Contacts merge-sheet open + hover (Mac, 8 runs each): p95 20–22 ms both, hover colour changes in all runs.

Specs (chromium, dev-01, rebased head), touched set appearance glass-shared glass-portal desk-style settings-polish pills-glass style-sheet contacts calendar calendar-state tasks-surfaces card-inset: 177 passed, 7 failed.

  • 6 of the 7 fail identically on the base (a0b0c4d0, repeat-each=3: contacts arrow keys 332, Composer 552, phone A–Z strip 861, glass-portal 390x844 ×3). Not caused by this change; they need their own issue (not fixed here).
  • 1 is ours: contacts.spec.ts:433 "Merge keeps the accent on hover". With the default 15% see-through the Contacts page now frosts (18 px), same as Notes. On this software-rendered Linux host the frames then stall long enough that the 150 ms hover transition has not advanced after the 400 ms wait. Evidence: base 2/20 failures, this head 11/20 (before the layer change) and 8/20 (after), 0/20 with the page's frost removed, 0/20 with the spec's own NOBLUR=1 switch. On the Mac GPU the same flow is flat and the hover changes in 8/8 runs. I did not loosen the spec. Decision for kayg: accept as a software-render artefact (run that spec with NOBLUR=1 on Linux), or make the Contacts frost cheaper.

Re-shot after the rebase: Mail, Calendar, Contacts, Settings at default and max see-through, desktop light and phone dark: nothing moved apart from the upstream #910 headings. (One thing for kayg, not from this change: the Calendar sidebar's heading reads "Notes".)

Preview redeploy: appearance-preview2 on dev-02 was still waiting for a slot when I last looked; it deploys the current review/calendar-2.

Head: 8a9379a9

## Follow-up on the rebased head (see SHA at the end) **What changed:** the first version put the frost filter on scrolling pages themselves (Contacts `.page`, Calendar's Timeline). A filter on a scroller is a backdrop root above its sticky/floating children, which is what the repo's own glass-portal rule warns against. Now: Contacts has a separate `glass-layer` sibling behind its page, Calendar uses a `glass-page-under` layer behind its non-scrolling container, and the scrollers carry no filter and a transparent background. Mail desktop never got a layer from this change (its page is the Shell ring, unchanged). **Mail 20–25 ms frames (Mac VM, WebKit, wheel scroll, max see-through + frost 40, ABAB, 12 runs each, scroller moved 195 px):** | build | frames | >20 ms | >25 ms | p95 (median of runs) | max | |---|---|---|---|---|---| | before (origin/review/calendar-2 parent) | 2266 | 106 | 2 | 20 | 39 | | after (this head) | 2269 | 107 | 1 | 20 | 26 | The earlier 85 → 114 was run-to-run noise: the same unchanged "before" build measured 29, 45, 32, 47, 37, 26 over-20-ms frames per 4-run block in the control (26–47). Dimming the backdrop off ("nodim") also made no difference (105 vs 103), so there is nothing to remove in Mail desktop. Phone Mail (a frosted layer behind the screen, scroller not under it; scroller moved 112 px): 64 vs 62 frames over 20 ms of 1461/1452, 0 over 25 ms both. Contacts merge-sheet open + hover (Mac, 8 runs each): p95 20–22 ms both, hover colour changes in all runs. **Specs (chromium, dev-01, rebased head), touched set `appearance glass-shared glass-portal desk-style settings-polish pills-glass style-sheet contacts calendar calendar-state tasks-surfaces card-inset`: 177 passed, 7 failed.** - 6 of the 7 fail identically on the base (`a0b0c4d0`, repeat-each=3: contacts arrow keys 332, Composer 552, phone A–Z strip 861, glass-portal 390x844 ×3). Not caused by this change; they need their own issue (not fixed here). - 1 is ours: `contacts.spec.ts:433` "Merge keeps the accent on hover". With the default 15% see-through the Contacts page now frosts (18 px), same as Notes. On this software-rendered Linux host the frames then stall long enough that the 150 ms hover transition has not advanced after the 400 ms wait. Evidence: base 2/20 failures, this head 11/20 (before the layer change) and 8/20 (after), 0/20 with the page's frost removed, 0/20 with the spec's own `NOBLUR=1` switch. On the Mac GPU the same flow is flat and the hover changes in 8/8 runs. I did not loosen the spec. Decision for kayg: accept as a software-render artefact (run that spec with `NOBLUR=1` on Linux), or make the Contacts frost cheaper. **Re-shot after the rebase:** Mail, Calendar, Contacts, Settings at default and max see-through, desktop light and phone dark: nothing moved apart from the upstream #910 headings. (One thing for kayg, not from this change: the Calendar sidebar's heading reads "Notes".) **Preview redeploy:** `appearance-preview2` on dev-02 was still waiting for a slot when I last looked; it deploys the current `review/calendar-2`. **Head:** `8a9379a9`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#921
No description provided.