diff --git a/src/ZenGlanceManager.mjs b/src/ZenGlanceManager.mjs index c133faa..0a9cbed 100644 --- a/src/ZenGlanceManager.mjs +++ b/src/ZenGlanceManager.mjs @@ -226,17 +226,14 @@ this.browserWrapper.removeAttribute("has-finished-animation"); this.browserWrapper.setAttribute("animate-full", true); gBrowser.selectedTab = this.#currentTab; + this.currentParentTab.linkedBrowser.closest(".browserSidebarContainer").classList.remove("zen-glance-background"); setTimeout(() => { window.requestAnimationFrame(() => { this.browserWrapper.setAttribute("animate-full-end", true); - window.requestAnimationFrame(() => { - window.requestAnimationFrame(() => { - setTimeout(() => { - this.animatingFullOpen = false; - this.closeGlance({ noAnimation: true }); - }, 600); - }); - }); + setTimeout(() => { + this.animatingFullOpen = false; + this.closeGlance({ noAnimation: true }); + }, 600); }); }, 300); } diff --git a/src/ZenGradientGenerator.mjs b/src/ZenGradientGenerator.mjs index 7b3d18d..3242c21 100644 --- a/src/ZenGradientGenerator.mjs +++ b/src/ZenGradientGenerator.mjs @@ -439,7 +439,7 @@ } } const result = this.pSBC( - this.isDarkMode ? 0.5 : -0.5, + this.isDarkMode ? 0.1 : -0.1, `rgb(${dominantColor[0]}, ${dominantColor[1]}, ${dominantColor[2]})`); return result?.match(/\d+/g).map(Number); }