From 84259a01f4e53b91fa37b1a583c04f422a5be88e Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sun, 22 Mar 2026 09:20:32 +0100 Subject: [PATCH] [fix](trx-frontend-http): redraw bookmark colors on theme change Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 3508d27..3c16ca5 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -630,6 +630,9 @@ function setTheme(theme) { themeToggleBtn.textContent = next === "dark" ? "☀️ Light" : "🌙 Dark"; 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 ────────────────────────────────────────────────────