From 68f36d9ecf565accafa0d43ccda38e11ab6e3a70 Mon Sep 17 00:00:00 2001 From: you Date: Mon, 23 Mar 2026 02:29:00 +0000 Subject: [PATCH] Fix: packet type color picker calls syncBadgeColors immediately --- public/customize.js | 1 + public/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/customize.js b/public/customize.js index 1ba46694..23fb9907 100644 --- a/public/customize.js +++ b/public/customize.js @@ -679,6 +679,7 @@ var key = inp.dataset.typeColor; state.typeColors[key] = inp.value; if (window.TYPE_COLORS) window.TYPE_COLORS[key] = inp.value; + if (window.syncBadgeColors) window.syncBadgeColors(); window.dispatchEvent(new CustomEvent('theme-changed')); var dot = container.querySelector('[data-tdot="' + key + '"]'); if (dot) dot.style.background = inp.value; diff --git a/public/index.html b/public/index.html index 08ecb3a3..c693cc60 100644 --- a/public/index.html +++ b/public/index.html @@ -101,6 +101,6 @@ - +