S016: R1-21 controls hold still under the pointer
segmented keys its animation state on its widget id instead of its screen position (the recording showed wrong checks while scrolling); Interface size uses a new settled_slider that shows a value label while dragged and sets the value on release; filter_chip keeps one width; zoom resets at 100 %. Selftest press/drag/release and scroll; smoke scripts sliders(-visible).txt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
0c4b6bbcec
commit
f2dd1cc35c
1 changed files with 273 additions and 24 deletions
|
|
@ -204,6 +204,7 @@ Slow 1.8; stiffness ÷ factor²); `theme::animation_time` drives egui's own anim
|
|||
selected = `secondary_container` fill and filled icon.
|
||||
- `switch(ui, &mut bool) -> changed`: M3 switch, handle travels (FAST) and grows with a check when on, hover halo.
|
||||
- `segmented(ui, &mut T, &[(T, label)]) -> changed`: equal-width segments, selected = tonal fill + check that slides in.
|
||||
Animation state is keyed on the widget's id, never its position (a position key breaks while the page scrolls).
|
||||
- `card(ui, |ui| ...)`: `surface_container`, radius `L`; rows inside get hairlines between them (not above the first).
|
||||
- `row(ui, title, description, |ui| control)`, `switch_row`, `link_row(ui, title, description) -> clicked` (whole
|
||||
row is the button, chevron at the end), `section(ui, title)` (group title in `primary`, above a card).
|
||||
|
|
@ -214,6 +215,11 @@ Slow 1.8; stiffness ÷ factor²); `theme::animation_time` drives egui's own anim
|
|||
the text when it doesn't fit beside 220 pt of text (`request_discard`, no flicker). `highlight_rows(ctx, query)`
|
||||
tints and counts matching rows (settings search). `chip`, `choice_chips` (one of many), `toggle_chips` (any of),
|
||||
`input_chip` (label + ×), `slider` (M3 Expressive, moved from Customize).
|
||||
- Still under the pointer (R1-21): a control never changes the layout around itself while it is used.
|
||||
`filter_chip(ui, label, on)` (used by `choice_chips` / `toggle_chips` and on/off chips) keeps one width, the check
|
||||
slides in over reserved space. `slider` sets its value live, for settings that only repaint (contrast, dim,
|
||||
blur); `settled_slider(…, &|v| label)` is for settings that re-lay out the page (interface size): while dragged
|
||||
only the handle and an M3 value label move, the value is set on release (a click or arrow key sets it at once).
|
||||
|
||||
**Settings** (S019, `src/ui/pages/settings.rs`). Rail 264 pt (title, search pill, 48 pt entries, sliding
|
||||
`secondary_container` pill); under 760 pt page width an 88 pt icon rail (56×32 pill, short label under) with the
|
||||
|
|
|
|||
Loading…
Reference in a new issue