docs: design references from the user's Material You apps (D-023)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-18 10:02:42 -06:00
commit d3afd015cc
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,7 @@ docs/ PROGRESS.md, DECISIONS.md, STATUS.md, HANDOFF.md
Plans/ INDEX.md, _TEMPLATE.md, <NN Category>/SNNN-*.md
README.md FEATURES.md PLAN.md PROMPT.md ORCHESTRATOR.md
```
Never modify: `PROMPT.md` (the user's brief), the reference app checkout (`/home/astar76/Projects/Tunal-reference`, outside the repo), anything under `/usr`, `~/.ssh/` (read only).
Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~/Projects` (Damson, Mulberry, Nacre …), the reference app checkout (`/home/astar76/Projects/Tunal-reference`, outside the repo), anything under `/usr`, `~/.ssh/` (read only).
## 2. Facts
@ -50,6 +50,7 @@ Never modify: `PROMPT.md` (the user's brief), the reference app checkout (`/home
- **MusicBrainz / Cover Art Archive**: no API key; ≤ 1 request/s across the whole app; User-Agent `Tunal/<version> ( https://archlinux.tail7c4f5e.ts.net/git/astar76/Tunal )`.
- **Native dependencies (decided, D-004–D-007, D-014, D-016, D-019)**: video frames via the `ffmpeg` CLI subprocess; audio `cpal` (alsa-lib) + symphonia; iOS `idevice` over system `usbmuxd`; MTP own pure-Rust client on `nusb`; native DnD via Slint's libwayland connection and `x11rb`; TLS/SSH crypto rustls + ring. No new system packages: optional tools missing → that feature off, no error. Any other non-Rust dependency: ask first.
- **User validates personally (🧑)**, all in phase 12 (D-009): visual review (S035), the polkit password prompt, real iPhone/Android devices, native drag/clipboard with other apps, a real SFTP host (S036). Plans that need these stop at that step and report.
- **Design references (read only, D-023)**: the user's own Material You apps — `~/Projects/Damson` (`src/theme.rs`, `src/motion.rs`, `src/ui/`), `~/Projects/Mulberry` (`src/theme.rs`, `src/ui/`), `~/Projects/Nacre` (`src/theme.rs`, `src/ui/widgets.rs`, `src/ui/chrome.rs`). They use egui, not Slint: borrow look and feel (colour roles, state layers, shapes, spacing, motion curves and timings) and port the idea to our Slint tokens; never change our stack, never edit them. Their code is the user's own, so copying is allowed where it fits. A library default that looks off is not a reason to accept it: build the control ourselves on `Theme`/`Motion`.
- **Motion rules** (`app-taste` skill): tokens only, hover tint and press squeeze on every control, interruptible motion, honour reduced motion, no idle animation, repaint only while something moves. Build new motion with the `animate` skill; `/unslop` and `/improve-animations` run in phase 12 (S034, S035; there is no `/review-animations`).
- No Forgejo remote yet: the user wants local-only git for now.

View file

@ -27,3 +27,4 @@ D-022 — 2026-11-18 — Fallback theme seed `#3F6FB5` (muted blue) when the por
D-023 — 2026-11-18 — Window minimum size 720×480 px (preferred 960×640): fits a 240 px sidebar plus a usable content column; Slint 1.19 can't drive the icon font's variation axes (font-weight doesn't reach `wght`), so `Icon` has size only and draws the default instance (wght 400, FILL 0); easing tokens live in an internal `Motion` global and Rust sets the reduced flag through `MotionPrefs` (easing properties can't be exported) — S003 — S003 and every UI plan.
D-024 — 2026-11-18 — Location URIs are `scheme://authority/path` with the path as raw bytes (percent-encoded only in Display); every backend implements the object-safe blocking `Location` trait in `tunal-core` (chunked `list` with a `ControlFlow` sink, `watch` returning a drop guard), unsupported ops return `Error::Unsupported`, and views gate actions on `capabilities()` — S006 — S007–S014, S024–S029.
D-025 — 2026-11-18 — Controls: every control inherits `StateLayer` (tint drawn above content, `clicked` for users and `activated` for the control's own toggling; inherited properties must be written `root.x`); `TextField` is built on the builtin `TextInput` because std `LineEdit` (material) takes its colours from the fixed `MaterialPalette` and can't use our tokens; the software renderer ignores `transform-scale`, so press squeeze shows only in a real window — S004 — every UI plan, S035.
D-023 — 2026-11-18 — UI sessions look at the user's other Material You apps (Damson, Mulberry, Nacre; egui) as design references for colour roles, state layers, shape, spacing and motion, porting ideas to our Slint Theme/Motion tokens; the stack (Slint 1.19) stays; library defaults that don't match are replaced by own components — user — all UI plans (S004–S031, S034, S035).