Refactor animation timing in ZenGradientGenerator

This commit is contained in:
mr. M 2024-10-26 12:10:52 +02:00
parent c0aae7a2ee
commit aa13489798
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -366,9 +366,11 @@
appWrapepr.removeAttribute('animating');
appWrapepr.setAttribute('animating', 'true');
document.body.style.setProperty('--zen-main-browser-background-old', document.body.style.getPropertyValue('--zen-main-browser-background'));
setTimeout(() => {
appWrapepr.removeAttribute('animating');
}, 1000);
window.requestAnimationFrame(() => {
setTimeout(() => {
appWrapepr.removeAttribute('animating');
}, 600);
});
}
this.customColorList.innerHTML = '';
if (!theme || theme.type !== 'gradient') {