Files
magpie/internal/gui
yetone 8410258364 sidebar: a page's row under the pointer is lit as by a torch, as a sub-list's is
The owner asked why the sidebar's page rows (Providers, Routing, Gateway…)
had no torch light when the sub-lists under them do (876d477d7). They now
light the same way: brightest where the pointer is, falling off along the
word, the rest of the row a step up, one row at a time; Settings at the
foot too. The open page's row is never lit, a touch lights nothing.

- navlamp.js: the row is a sub-list's row or, in the sidebar, a page's row
  (#nav > button[data-view], #prefs); the word is the row's own span; the
  open page (.on) is skipped as the sub-list's .cur is.
- app.css: the lit word's ground ink is the row's own (--lo): the page rows
  rest at --fg-2, the sub-rows at --ctl-fg as before; the page rows' plain
  hover ink stands down while the lamp is on, as the sub-rows' does. Their
  hover ground is unchanged.
- app.js: the lamp is loaded when the pointer first comes over the sidebar,
  not when a sub-list is drawn. Loaded when the sidebar was laid out, its
  fetch held up the open page's arrival past navTopGo's two frames, and
  the selection shape glided from Agents (sidebar-glide red 2 of 5 on
  Windows chromium, 0 of 6 at the base 5d955a4d4). A comment's
  cross-reference was cut so app.js is 39 bytes under main, no raise.

Rebased on a511b11d8; at that head (8fcefff51 before this message):
- nav-lamp, old-webkit, sidebar-glide, sidebar on Windows, both engines:
  56 pass, 0 fail; the Budget test on mote: ok.

Tests: nav-lamp.test.cjs gets a page-row test (both engines, dark/light,
en/zh): brightest at the pointer's end of 供应商/Providers by pixels, one
row lit, Gateway then Settings taking it, all out off the sidebar, the open
page's row never lit.

Run before the last rebase (on 5d955a4d4, then 47173f593):
- nav-lamp + old-webkit + sidebar + side-toggle + rail-tip on xiaomi-gpu
  (Windows), both engines: 74 pass, 0 fail. sidebar-glide chromium 6 of 6.
  mote ran chromium only (webkit timed out at launch, load 37).
- go test -tags nogui -run Budget ./internal/gui on mote: ok.
- The sidebar's look files (18 files) on Windows at the first version:
  header-centre webkit, mobile-web, omarchy and i18n-keys' "a plugin's
  words are its own" red, the same at the base 5d955a4d4 run beside it
  (plugins/routing "Unmarked" shared with a Go test; not mine, not filed
  here).
- A screenshot (zh dark) shows 供 lit, 应商 falling off.

Broken by hand: the page rows taken out of navlamp.js's selector, the new
test red in every case, the sub-list's still green; put back.

Not tried: the real app on Linux (WebKitGTK) and Windows (WebView2), the
whole GUI suite.
2026-10-31 18:07:01 +08:00
..
…
…
…
…