Update oxide.theme.js
This commit is contained in:
parent
1892df648d
commit
14cac82b49
|
|
@ -1,9 +1,10 @@
|
||||||
// Oxide.theme.js
|
// Oxide.theme.js
|
||||||
|
let hasAppliedTheme = false;
|
||||||
|
|
||||||
runAfterReset(function applyTheme() {
|
runAfterReset(function applyTheme() {
|
||||||
// Only run once
|
// Only run once
|
||||||
const index = runAfterResetList.findIndex(fn => fn.name === "applyTheme");
|
if (hasAppliedTheme) return;
|
||||||
if (index !== -1) runAfterResetList.splice(index, 1);
|
hasAppliedTheme = true;
|
||||||
|
|
||||||
const css = `
|
const css = `
|
||||||
:root {
|
:root {
|
||||||
|
|
@ -38,6 +39,8 @@ runAfterReset(function applyTheme() {
|
||||||
document
|
document
|
||||||
.getElementById('extraInfo')
|
.getElementById('extraInfo')
|
||||||
.querySelectorAll('*')
|
.querySelectorAll('*')
|
||||||
.forEach(el => {el.style.color = '#66AC92'; el.style.backgrounda = 'none';});
|
.forEach(el => {
|
||||||
|
el.style.color = '#66AC92';
|
||||||
|
el.style.background = 'none';
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue