yetone
876d477d73
sidebar: a sub-list's row under the pointer is lit as by a torch
...
The owner asked for the sidebar's sub-lists (Settings' General, Allowances,
Network and sharing…) to light the way a torch does, not a whole row at
once, and picked this version from a mock-up of four: only the row under
the pointer lights, brightest where the pointer is and falling off along
the word, the rest of that row a little over the others. The light
follows the pointer with a small lag and fades as it moves to the next
row or off the list.
- navlamp.js (new, 2KB): one pointermove listener on the document eases
the light's place and each row's --si; a touch lights nothing, the
selected row is never lit, reduced motion puts it there at once. It is
imported by app.js when a sub-list is first drawn, as signsheets.js
and the others are, so it is outside the core's scripts.
- app.css: .nav-s > span.lit paints the word with a radial gradient
clipped to its text (36px wide, its heart --fg taken to white in dark
and black in light by relative colour, the rest of the row 15% toward
--fg). All under @supports color-mix, so Safari 15 keeps the plain
hover; while the lamp is on that plain hover stands down so the row
doesn't flash to full ink first.
- app.js: the one import line (+46 bytes), with a clause of the sub-row
click comment cut that said again what the line above says, so app.js
and the core stay in their budgets with no raise (app.js 1,313,980,
core 1,537,347).
- old-webkit.test.cjs lists navlamp.js among the scripts loaded later.
Tests: nav-lamp.test.cjs, both engines, light and dark, en and zh. It
reads the word's pixels: with the pointer at a word's start the start's
ink stands off the ground more than the end's, and the other way round
once the pointer is at its end; one row lit at a time, the next row
taking it and the first going out, all out off the list, the selection
and a touch never lit, lit in one frame with reduced motion.
Run at this head:
- the whole GUI suite on xiaomi-gpu (Windows), at 03d21ab8e plus this:
16131 tests, 15613 pass, 486 fail in 91 files, nav-lamp ok. Those 91
files again at concurrency 2, at 11fc687c0 with this (6d6715370 before
this message): 416 fail; at origin/main 11fc687c0 alone: 499 fail. The
reds are the same tests on both sides (#4124 , numbers there).
- nav-lamp.test.cjs + old-webkit.test.cjs: chromium on mote 4/4; webkit
on xiaomi-gpu (Windows) 4/4 and old-webkit 7/7. On mote webkit timed out
at launch (load 21, another session's full GUI suite), so it ran on
Windows instead.
- go test -tags nogui -run Budget ./internal/gui on mote: ok.
Broken by hand, each red, then put back:
- the gradient flattened to one colour: "brightest where the pointer is"
red in every case;
- touch let through: "a touch lights no row" red;
- every row kept lit: the first row never goes out, timed out red.
Not tried: the real app on Linux (WebKitGTK) and Windows (WebView2), and
macOS 13's WebKit, where relative colour is missing and the heart is
--fg itself.
2026-10-31 09:55:32 +08:00
..
2026-10-31 09:55:32 +08:00
2026-10-30 15:00:16 +08:00
2026-10-18 07:13:09 +08:00
2026-10-31 09:55:32 +08:00
2026-10-13 09:55:23 +08:00
2026-10-08 19:22:14 +08:00
2026-10-30 18:03:55 +08:00
2026-10-07 03:34:05 +08:00
2026-10-30 15:38:06 +08:00
2026-10-12 01:29:57 +08:00
2026-10-09 08:50:14 +08:00
2026-10-11 02:34:30 +08:00
2026-10-16 19:14:52 +08:00
2026-10-14 20:01:06 +08:00
2026-10-31 01:22:28 +08:00
2026-10-14 17:00:34 +08:00
2026-10-29 13:12:36 +08:00
2026-10-31 09:17:24 +08:00
2026-10-30 12:06:33 +08:00
2026-10-13 09:55:23 +08:00
2026-10-27 18:58:16 +08:00
2026-10-27 18:58:16 +08:00
2026-10-24 21:01:18 +08:00
2026-10-24 21:01:18 +08:00
2026-10-15 01:32:12 +08:00
2026-10-29 17:13:05 +08:00
2026-10-09 12:14:26 +08:00
2026-10-13 16:55:27 +08:00
2026-10-28 22:26:02 +08:00
2026-10-17 22:54:38 +08:00
2026-10-25 05:54:07 +08:00
2026-10-16 00:16:43 +08:00
2026-10-25 01:23:42 +08:00
2026-10-23 01:58:01 +08:00
2026-10-13 14:40:11 +08:00
2026-10-31 04:12:17 +08:00
2026-10-14 09:15:21 +08:00
2026-10-14 09:15:21 +08:00
2026-10-14 09:15:21 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 12:11:23 +08:00
2026-10-26 15:35:12 +08:00
2026-10-10 22:36:28 +08:00
2026-10-27 15:30:31 +08:00
2026-10-31 09:17:24 +08:00
2026-10-29 22:10:21 +08:00
2026-10-29 22:10:21 +08:00
2026-10-30 13:23:19 +08:00
2026-10-30 16:05:58 +08:00
2026-10-22 19:03:32 +08:00
2026-10-30 16:05:58 +08:00
2026-10-31 09:17:24 +08:00
2026-10-07 03:34:05 +08:00
2026-10-31 04:21:21 +08:00
2026-10-13 07:14:22 +08:00
2026-10-15 03:34:59 +08:00
2026-10-17 05:33:18 +08:00
2026-10-14 08:36:07 +08:00
2026-10-13 05:34:13 +08:00
2026-10-12 22:51:53 +08:00
2026-10-29 20:53:36 +08:00
2026-10-12 00:57:27 +08:00
2026-10-12 00:57:27 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-10-14 13:31:10 +08:00
2026-10-25 19:28:05 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-09 12:10:04 +08:00
2026-10-06 19:32:56 +08:00
2026-10-28 12:25:39 +08:00
2026-10-28 12:25:39 +08:00
2026-10-17 17:45:57 +08:00
2026-10-31 09:41:13 +08:00
2026-10-30 19:12:35 +08:00
2026-10-15 03:34:58 +08:00
2026-10-15 23:08:05 +08:00
2026-10-13 20:39:39 +08:00
2026-10-10 04:24:18 +08:00
2026-10-28 03:50:46 +08:00
2026-10-15 00:34:14 +08:00
2026-10-15 00:34:14 +08:00
2026-10-10 15:08:14 +08:00
2026-10-17 20:38:06 +08:00
2026-10-15 01:32:12 +08:00
2026-10-28 17:34:16 +08:00
2026-10-11 18:57:48 +08:00
2026-10-09 11:10:12 +08:00
2026-10-11 10:33:45 +08:00
2026-10-29 23:36:58 +08:00
2026-10-13 01:41:50 +08:00
2026-10-31 00:57:21 +08:00
2026-10-31 00:57:21 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-10-17 05:33:18 +08:00
2026-10-13 04:27:40 +08:00
2026-10-29 15:50:37 +08:00
2026-10-29 15:50:37 +08:00
2026-10-15 19:20:09 +08:00
2026-10-15 19:20:09 +08:00
2026-10-15 23:08:05 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-10-13 02:14:10 +08:00
2026-10-13 07:30:06 +08:00
2026-10-13 07:30:06 +08:00
2026-10-10 20:00:38 +08:00
2026-10-08 20:13:26 +08:00
2026-10-30 15:26:03 +08:00
2026-10-20 20:23:56 +08:00
2026-10-11 01:49:47 +08:00
2026-10-11 01:49:47 +08:00
2026-10-29 03:17:58 +08:00
2026-10-12 00:10:59 +08:00
2026-10-11 20:10:05 +08:00
2026-10-29 19:58:40 +08:00
2026-10-30 21:56:29 +08:00
2026-10-25 14:00:59 +08:00
2026-10-17 05:33:18 +08:00
2026-10-20 01:25:47 +08:00
2026-10-31 00:44:59 +08:00
2026-10-29 09:24:31 +08:00
2026-10-20 02:29:39 +08:00
2026-10-29 20:38:00 +08:00
2026-10-28 05:50:26 +08:00
2026-10-16 08:43:02 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-10-26 22:50:37 +08:00
2026-10-26 22:50:37 +08:00
2026-10-10 01:30:29 +08:00
2026-10-15 23:08:03 +08:00
2026-10-24 05:31:59 +08:00
2026-10-28 15:25:53 +08:00
2026-10-07 03:00:47 +08:00
2026-10-07 00:16:02 +08:00
2026-10-30 11:54:46 +08:00
2026-10-27 08:29:11 +08:00
2026-10-29 07:58:26 +08:00
2026-10-29 14:28:24 +08:00
2026-10-29 14:28:24 +08:00
2026-10-29 14:28:24 +08:00
2026-10-12 01:45:14 +08:00
2026-10-15 23:08:00 +08:00
2026-10-16 15:40:38 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-10-22 20:50:59 +08:00
2026-10-14 08:50:41 +08:00
2026-10-19 12:42:48 +08:00
2026-10-29 14:28:24 +08:00
2026-10-18 07:13:09 +08:00
2026-10-16 20:05:11 +08:00
2026-10-29 14:28:24 +08:00
2026-10-29 14:28:24 +08:00
2026-10-28 22:34:52 +08:00
2026-10-13 14:29:52 +08:00
2026-10-16 20:48:51 +08:00
2026-10-24 22:31:59 +08:00
2026-10-13 14:29:52 +08:00
2026-10-14 04:22:19 +08:00
2026-10-12 19:38:20 +08:00
2026-10-10 23:57:56 +08:00
2026-10-30 15:42:29 +08:00
2026-10-27 23:37:46 +08:00
2026-10-31 04:24:59 +08:00
2026-10-21 09:13:30 +08:00
2026-10-30 18:55:51 +08:00
2026-10-28 16:55:24 +08:00
2026-10-28 16:55:24 +08:00
2026-10-12 19:14:54 +08:00
2026-10-14 16:40:23 +08:00
2026-10-07 06:14:20 +08:00
2026-10-11 22:41:11 +08:00
2026-10-15 05:20:17 +08:00
2026-10-27 02:26:27 +08:00
2026-10-30 04:48:17 +08:00
2026-10-07 06:14:20 +08:00
2026-10-12 23:45:06 +08:00
2026-10-11 13:06:28 +08:00
2026-10-12 23:45:06 +08:00
2026-10-17 13:11:43 +08:00
2026-10-25 04:12:06 +08:00
2026-10-09 02:20:30 +08:00
2026-10-06 16:02:03 +08:00
2026-10-16 22:58:40 +08:00
2026-10-23 03:35:27 +08:00
2026-10-10 21:14:38 +08:00
2026-10-15 23:08:02 +08:00
2026-10-14 23:06:35 +08:00
2026-10-10 19:21:56 +08:00
2026-10-31 04:21:21 +08:00
2026-10-23 02:39:33 +08:00
2026-10-15 23:08:05 +08:00
2026-10-15 23:08:05 +08:00
2026-10-11 11:04:21 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-10-08 05:00:55 +08:00
2026-10-31 01:01:49 +08:00
2026-10-15 23:08:00 +08:00
2026-10-14 05:22:40 +08:00
2026-10-11 03:12:46 +08:00
2026-10-10 11:29:03 +08:00
2026-10-30 00:46:45 +08:00
2026-10-11 12:41:00 +08:00
2026-10-29 17:02:24 +08:00
2026-10-16 07:23:55 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-17 05:33:18 +08:00
2026-10-15 23:08:00 +08:00
2026-10-08 18:49:16 +08:00
2026-10-28 22:48:07 +08:00
2026-10-14 22:45:40 +08:00
2026-10-15 05:10:28 +08:00
2026-10-29 06:30:58 +08:00
2026-10-14 22:45:40 +08:00
2026-10-16 05:10:43 +08:00
2026-10-10 09:53:38 +08:00
2026-10-11 01:13:52 +08:00
2026-10-07 00:16:13 +08:00
2026-10-19 03:57:52 +08:00
2026-10-29 23:56:05 +08:00
2026-10-15 09:40:51 +08:00
2026-10-29 23:56:05 +08:00
2026-10-29 23:56:05 +08:00
2026-10-13 13:02:09 +08:00
2026-10-27 06:18:24 +08:00
2026-10-12 22:29:46 +08:00
2026-10-12 23:33:56 +08:00
2026-10-30 08:32:57 +08:00
2026-10-15 08:23:54 +08:00
2026-10-22 00:04:28 +08:00
2026-10-31 08:31:15 +08:00
2026-10-09 13:29:08 +08:00
2026-10-31 04:24:59 +08:00
2026-10-30 15:53:22 +08:00
2026-10-31 01:02:24 +08:00
2026-10-14 08:36:07 +08:00
2026-10-08 16:38:14 +08:00
2026-10-16 15:40:38 +08:00
2026-10-09 12:59:29 +08:00
2026-10-29 17:09:13 +08:00
2026-10-29 17:09:13 +08:00
2026-10-30 19:05:17 +08:00
2026-10-15 23:08:04 +08:00
2026-10-14 08:32:40 +08:00
2026-10-31 00:08:29 +08:00
2026-10-13 09:55:23 +08:00
2026-10-13 09:55:23 +08:00
2026-10-13 09:55:23 +08:00
2026-10-08 18:16:03 +08:00
2026-10-13 09:55:23 +08:00
2026-10-19 23:19:24 +08:00
2026-10-30 13:23:19 +08:00
2026-10-30 15:53:22 +08:00
2026-10-30 15:53:22 +08:00
2026-10-12 05:21:23 +08:00
2026-10-12 05:21:23 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-08 05:00:55 +08:00
2026-10-08 05:00:55 +08:00
2026-10-24 15:20:37 +08:00
2026-10-24 15:20:37 +08:00
2026-10-24 15:20:37 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 05:30:58 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-15 23:08:01 +08:00
2026-10-14 13:02:48 +08:00
2026-10-12 01:45:14 +08:00
2026-10-30 23:14:08 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 17:29:43 +08:00
2026-10-30 23:14:08 +08:00
2026-10-30 23:14:08 +08:00
2026-10-30 23:14:08 +08:00
2026-10-29 16:31:37 +08:00
2026-10-15 23:08:00 +08:00
2026-10-30 13:23:19 +08:00
2026-10-11 21:59:10 +08:00
2026-10-11 21:59:10 +08:00
2026-10-29 17:47:30 +08:00
2026-10-29 17:47:30 +08:00
2026-10-31 00:44:59 +08:00
2026-10-14 15:19:14 +08:00
2026-10-29 18:55:42 +08:00
2026-10-09 10:43:14 +08:00
2026-10-15 23:08:03 +08:00
2026-10-28 23:22:14 +08:00
2026-10-27 01:37:04 +08:00
2026-10-28 23:22:14 +08:00
2026-10-09 10:43:14 +08:00
2026-10-13 09:47:08 +08:00
2026-10-25 18:22:13 +08:00
2026-10-08 17:35:30 +08:00
2026-10-28 23:22:14 +08:00
2026-10-28 23:22:14 +08:00
2026-10-28 23:22:14 +08:00
2026-10-30 09:23:35 +08:00
2026-10-29 18:52:05 +08:00
2026-10-28 21:13:09 +08:00
2026-10-15 04:21:31 +08:00
2026-10-28 11:15:57 +08:00
2026-10-07 02:14:29 +08:00
2026-10-14 15:26:28 +08:00
2026-10-23 10:54:27 +08:00
2026-10-31 06:22:53 +08:00
2026-10-23 03:08:08 +08:00
2026-10-30 06:34:53 +08:00
2026-10-28 13:51:37 +08:00
2026-10-29 15:39:31 +08:00
2026-10-31 06:22:53 +08:00
2026-10-27 14:27:12 +08:00
2026-10-15 01:32:12 +08:00
2026-10-28 19:54:53 +08:00
2026-10-27 15:15:29 +08:00
2026-10-14 05:29:30 +08:00
2026-10-29 14:28:24 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 15:25:53 +08:00
2026-10-19 07:23:04 +08:00
2026-10-12 22:03:29 +08:00
2026-10-13 09:50:04 +08:00
2026-10-12 22:03:29 +08:00
2026-10-12 22:03:29 +08:00
2026-10-19 07:23:04 +08:00
2026-10-25 01:46:55 +08:00
2026-10-24 22:54:36 +08:00
2026-10-26 21:09:44 +08:00
2026-10-16 20:05:11 +08:00
2026-10-30 21:56:29 +08:00
2026-10-30 21:56:29 +08:00
2026-10-09 23:07:44 +08:00
2026-10-27 13:11:16 +08:00
2026-10-12 23:16:54 +08:00
2026-10-15 00:34:14 +08:00
2026-10-15 00:34:14 +08:00