[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:
@@ -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 ────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user