mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:49:59 +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,17 +226,14 @@
|
||||||
this.browserWrapper.removeAttribute("has-finished-animation");
|
this.browserWrapper.removeAttribute("has-finished-animation");
|
||||||
this.browserWrapper.setAttribute("animate-full", true);
|
this.browserWrapper.setAttribute("animate-full", true);
|
||||||
gBrowser.selectedTab = this.#currentTab;
|
gBrowser.selectedTab = this.#currentTab;
|
||||||
|
this.currentParentTab.linkedBrowser.closest(".browserSidebarContainer").classList.remove("zen-glance-background");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
this.browserWrapper.setAttribute("animate-full-end", true);
|
this.browserWrapper.setAttribute("animate-full-end", true);
|
||||||
window.requestAnimationFrame(() => {
|
setTimeout(() => {
|
||||||
window.requestAnimationFrame(() => {
|
this.animatingFullOpen = false;
|
||||||
setTimeout(() => {
|
this.closeGlance({ noAnimation: true });
|
||||||
this.animatingFullOpen = false;
|
}, 600);
|
||||||
this.closeGlance({ noAnimation: true });
|
|
||||||
}, 600);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
|
@ -439,7 +439,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const result = this.pSBC(
|
const result = this.pSBC(
|
||||||
this.isDarkMode ? 0.5 : -0.5,
|
this.isDarkMode ? 0.1 : -0.1,
|
||||||
`rgb(${dominantColor[0]}, ${dominantColor[1]}, ${dominantColor[2]})`);
|
`rgb(${dominantColor[0]}, ${dominantColor[1]}, ${dominantColor[2]})`);
|
||||||
return result?.match(/\d+/g).map(Number);
|
return result?.match(/\d+/g).map(Number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue