Improved UI theme colors generation and newtab aligment

This commit is contained in:
mr. M 2024-11-01 13:07:30 +01:00
parent 220c9b42a5
commit 3242919033
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 6 additions and 9 deletions

View file

@ -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);
}

View file

@ -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);
}