From f12997a466beed7a92e08a01516e1643fd89d5b6 Mon Sep 17 00:00:00 2001 From: nafunii Date: Mon, 10 Jan 2022 12:24:47 +0800 Subject: [PATCH] feat: add active color --- onload.js | 1 + popup.js | 1 + 2 files changed, 2 insertions(+) diff --git a/onload.js b/onload.js index 9ef689b..35403d3 100644 --- a/onload.js +++ b/onload.js @@ -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++) { diff --git a/popup.js b/popup.js index 1c52443..0fd43b4 100644 --- a/popup.js +++ b/popup.js @@ -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++) {