mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:39:58 +02:00
Improved UI theme colors generation and newtab aligment
This commit is contained in:
parent
220c9b42a5
commit
3242919033
2 changed files with 6 additions and 9 deletions
|
@ -226,18 +226,15 @@
|
|||
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);
|
||||
});
|
||||
});
|
||||
});
|
||||
}, 300);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue