feat: add focus color

This commit is contained in:
nafunii 2022-01-10 12:35:55 +08:00
parent 171d32f21e
commit 9ddd63fab3
No known key found for this signature in database
GPG key ID: 0A82862EF6000AE3
2 changed files with 0 additions and 2 deletions

View file

@ -1,6 +1,5 @@
chrome.storage.sync.get('a1', ({ a1 }) => {
setTimeout(function() {
document.querySelector('.Progress-item.rounded-2').style.setProperty('background-color', 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-L2-bg', a1 + "8a", "important");

View file

@ -18,7 +18,6 @@ changeColor.addEventListener("change", async() => {
function setAccent() {
chrome.storage.sync.get('a1', ({ a1 }) => {
document.querySelector('.Progress-item.rounded-2').style.setProperty('background-color', 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-L2-bg', a1 + "8a", "important");