From 14cac82b4988bd75a653c7c8a8d6641e35eb0cc6 Mon Sep 17 00:00:00 2001 From: redbirdly <155550833+redbirdly@users.noreply.github.com> Date: Sat, 28 Jun 2025 09:52:22 +0900 Subject: [PATCH] Update oxide.theme.js --- mods/oxide.theme.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mods/oxide.theme.js b/mods/oxide.theme.js index 2d1f5133..9648d6c3 100644 --- a/mods/oxide.theme.js +++ b/mods/oxide.theme.js @@ -1,9 +1,10 @@ // Oxide.theme.js +let hasAppliedTheme = false; runAfterReset(function applyTheme() { // Only run once - const index = runAfterResetList.findIndex(fn => fn.name === "applyTheme"); - if (index !== -1) runAfterResetList.splice(index, 1); + if (hasAppliedTheme) return; + hasAppliedTheme = true; const css = ` :root { @@ -38,6 +39,8 @@ runAfterReset(function applyTheme() { document .getElementById('extraInfo') .querySelectorAll('*') - .forEach(el => {el.style.color = '#66AC92'; el.style.backgrounda = 'none';}); - + .forEach(el => { + el.style.color = '#66AC92'; + el.style.background = 'none'; + }); });