Snap animated paths to MyGo's path-cache grid; removes cross-test snapshot flake

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:14:04 -04:00
1 parent bae0a48351
commit cfc7ab023d
5 files changed
+10 -1

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ testdata/snapshots/ <os>/<name>-<light|dark>.png
- Focus: `internal.Ring(e, k.Focus, radius)` for the 2 DIP ring with 2 DIP gap.
- State marks (checked, selected, progress) use `OnAccent` on `Accent`, or `AccentText`, never `Accent` alone on dark surfaces (2.44:1).
- Ornament color only for dividers, corners, panel titles. No gradients, glow, glass or texture.
- Animated paths: pass coordinates through `internal.Snap(p, v)`. MyGo caches path masks by quarter-pixel keys (ui/path.go); unsnapped motion reuses near-miss masks and breaks snapshots.
- Durations: `mujica.Motion(c, theme.StateDuration)`; popups use `theme.PopupDuration`.
- Disabled blocks input before handling it (`Disabled(true)`); MyGo dims disabled elements, do not add opacity.
- Copy shown by a component comes from `msg(c, key)`; business copy comes from the caller.