diff --git a/public/app.js b/public/app.js
index 90abef06..985a90cc 100644
--- a/public/app.js
+++ b/public/app.js
@@ -315,6 +315,7 @@ function navigate() {
}
window.addEventListener('hashchange', navigate);
+window.addEventListener('theme-changed', () => { if (typeof navigate === 'function') navigate(); });
window.addEventListener('DOMContentLoaded', () => {
connectWS();
diff --git a/public/customize.js b/public/customize.js
index 16a3b580..a11b6063 100644
--- a/public/customize.js
+++ b/public/customize.js
@@ -627,6 +627,8 @@
// Sync to global role colors used by map/packets/etc
if (window.ROLE_COLORS) window.ROLE_COLORS[key] = inp.value;
if (window.ROLE_STYLE && window.ROLE_STYLE[key]) window.ROLE_STYLE[key].color = inp.value;
+ // Trigger re-render of current page
+ window.dispatchEvent(new CustomEvent('theme-changed'));
var dot = container.querySelector('[data-dot="' + key + '"]');
if (dot) dot.style.background = inp.value;
var hex = container.querySelector('[data-nhex="' + key + '"]');
@@ -651,6 +653,7 @@
var key = inp.dataset.typeColor;
state.typeColors[key] = inp.value;
if (window.TYPE_COLORS) window.TYPE_COLORS[key] = inp.value;
+ window.dispatchEvent(new CustomEvent('theme-changed'));
var dot = container.querySelector('[data-tdot="' + key + '"]');
if (dot) dot.style.background = inp.value;
var hex = container.querySelector('[data-thex="' + key + '"]');
diff --git a/public/index.html b/public/index.html
index 8fcdbc9b..11d6ac36 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,7 +22,7 @@
-
+
-
+
@@ -101,6 +101,6 @@
-
+