Update oxide.theme.js

This commit is contained in:
redbirdly 2025-06-28 09:52:22 +09:00 committed by GitHub
parent 1892df648d
commit 14cac82b49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -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';
});
});