feat: add active color

This commit is contained in:
nafunii 2022-01-10 12:24:47 +08:00
parent f34b77d7f3
commit f12997a466
No known key found for this signature in database
GPG key ID: 0A82862EF6000AE3
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ chrome.storage.sync.get('a1', ({ a1 }) => {
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-hover-bg', a1 + "c5", "important");
document.querySelector(':root').style.setProperty('--color-btn-primary-active-bg', a1 + "8a", "important");
document.querySelector('.js-highlight-blob').style.setProperty('fill', a1 + "c5", "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++) {

View file

@ -26,6 +26,7 @@ function setAccent() {
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-hover-bg', a1 + "c5", "important");
document.querySelector(':root').style.setProperty('--color-btn-primary-active-bg', a1 + "8a", "important");
document.querySelector('.js-highlight-blob').style.setProperty('fill', a1 + "c5", "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++) {