[fix](trx-frontend-http): redraw bookmark colors on theme change

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-22 09:20:32 +01:00
parent 4ad5bf863d
commit 84259a01f4
@@ -630,6 +630,9 @@ function setTheme(theme) {
themeToggleBtn.textContent = next === "dark" ? "☀️ Light" : "🌙 Dark"; themeToggleBtn.textContent = next === "dark" ? "☀️ Light" : "🌙 Dark";
themeToggleBtn.title = next === "dark" ? "Switch to light mode" : "Switch to dark mode"; themeToggleBtn.title = next === "dark" ? "Switch to light mode" : "Switch to dark mode";
} }
// Invalidate cached bookmark chip colours so they pick up the new theme palette.
if (typeof bmRevision !== "undefined") bmRevision++;
if (typeof scheduleSpectrumDraw === "function") scheduleSpectrumDraw();
} }
// ── Style / palette system ──────────────────────────────────────────────────── // ── Style / palette system ────────────────────────────────────────────────────