shannnnnks on X (Docker, v0.1.4059): Day card's sidebar icon was black on
the dark sidebar. Its icon.svg strokes with currentColor, and pluginpages.js
drew every plugin page's icon as an <img>, where currentColor is black
whatever the theme, so any one-tone plugin mark (Day card, Agent office,
Usage) went dark on dark.
The tab now wraps the picture in <i class="nav-ic nav-pic"> and runs the
same toneCheck the Plugins page's logos use: a mark in one near-black or
near-white tone becomes a mask in the tab's own ink (var(--muted), the open
page's --fg, More's list --fg-2), as the built-in pages' marks are; a
coloured picture is drawn as it is. The wrapper is an <i>, not a <span>:
load() retitles a tab through its first span.
New internal/gui/tests/plugin-page-icon-tone.test.cjs (Day card's icon.svg
as a fixture, a white mark, the coloured example icon): dark and light,
window and web, all five languages, Chromium and WebKit; mask paint equals
a built-in mark's ink, 16px, ink over 8% of the box on a screenshot, the
open tab in the text colour, the mark kept and title intact after a second
list read, and the phone's More list. plugin-page.test.cjs now finds the
example icon under .nav-ic.
Run on mote (mote-run):
- plugin-page-icon-tone: 46/46 green; with origin/main's pluginpages.js
put back by hand, 46/46 red (no mask).
- go test -count=1 ./internal/gui: TestCoreScriptBudget was over by 87
bytes on the first cut; trimmed, ok.
- node --test, both engines: plugin-page-icon-tone plugin-page
plugin-page-arrange plugin-page-cookie-proxy plugin-page-csp-hash
plugin-page-idle phone-tabs phone-web sidebar sidebar-glide
sidebar-tab-top sidebar-settings-steady side-toggle side-width
nav-pages-hidden nav-sub-icons nav-lamp last-page icon-one-tone
i18n-keys: 320/320 ok at the pushed tree.
- menu-scroll, phone-no-sideways, plugin-page-foreign-error are red the
same at origin/main ac0b5c287 (run there too): #5982, #5869, #6117.
last-page webkit went red once on /api/autobackup access-control
errors (#6038's class) and passed on the rerun.
At the pushed head, rebased on 5211fd3ba: go test -count=1 ./internal/gui ok (TestCoreScriptBudget
again on aff11e042, which touches no GUI file),
plugin-page-icon-tone + plugin-page ok in both engines.
Not run: the whole GUI suite (mote and mica both had queued suites under
suite.lock); the real Docker build.