mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 10:00:33 +00:00
hack: workaround for css not loading
This commit is contained in:
parent
fded1aa0e0
commit
3a640b0a3d
1 changed files with 14 additions and 13 deletions
27
onload.js
27
onload.js
|
@ -1,15 +1,16 @@
|
||||||
chrome.storage.sync.get('a1', ({ a1 }) => {
|
chrome.storage.sync.get('a1', ({ a1 }) => {
|
||||||
|
setTimeout(function() {
|
||||||
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L4-bg', a1 + "ff", "important");
|
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L4-bg', a1 + "ff", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L3-bg', a1 + "c5", "important");
|
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L3-bg', a1 + "c5", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L2-bg', a1 + "8a", "important");
|
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L2-bg', a1 + "8a", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L1-bg', a1 + "54", "important");
|
document.querySelector(':root').style.setProperty('--color-calendar-graph-day-L1-bg', a1 + "54", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-accent-emphasis', a1 + "ff", "important");
|
document.querySelector(':root').style.setProperty('--color-accent-emphasis', a1 + "ff", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-btn-primary-bg', a1 + "ff", "important");
|
document.querySelector(':root').style.setProperty('--color-btn-primary-bg', a1 + "ff", "important");
|
||||||
document.querySelector(':root').style.setProperty('--color-btn-primary-hover-bg', a1 + "c5", "important");
|
document.querySelector(':root').style.setProperty('--color-btn-primary-hover-bg', a1 + "c5", "important");
|
||||||
document.querySelector('.js-highlight-blob').style.setProperty('fill', a1 + "c5", "important");
|
document.querySelector('.js-highlight-blob').style.setProperty('fill', a1 + "c5", "important");
|
||||||
document.querySelector('.js-highlight-blob').style.setProperty('stroke', a1 + "ff", "important");
|
document.querySelector('.js-highlight-blob').style.setProperty('stroke', a1 + "ff", "important");
|
||||||
for (let i = 0; i < document.querySelectorAll('.Progress-item.rounded-2').length; i++) {
|
for (let i = 0; i < document.querySelectorAll('.Progress-item.rounded-2').length; i++) {
|
||||||
document.querySelectorAll('.Progress-item.rounded-2')[i].style.setProperty('background-color', a1 + "ff", "important");
|
document.querySelectorAll('.Progress-item.rounded-2')[i].style.setProperty('background-color', a1 + "ff", "important");
|
||||||
}
|
}
|
||||||
|
}, 1000);
|
||||||
});
|
});
|
Loading…
Reference in a new issue