changed progressbar colors

This commit is contained in:
Nathan DECHER 2020-04-14 10:59:27 +02:00
parent efa4d9f80f
commit a934d5537b

View file

@ -28,8 +28,8 @@ cvs.classList.add('progressBar');
cvs.classList.add('hiddenBottom'); cvs.classList.add('hiddenBottom');
const bar=new ProgressBar(assetSpecs.length*2+tasks.reduce((a, t) => a+t.steps, 0)); const bar=new ProgressBar(assetSpecs.length*2+tasks.reduce((a, t) => a+t.steps, 0));
bar.addUpdateListener(() => bar.draw(cvs)); bar.addUpdateListener(() => bar.draw(cvs, '#930a16', '#23090d'));
bar.draw(cvs); bar.draw(cvs, '#930a16', '#23090d');
document.body.appendChild(cvs); document.body.appendChild(cvs);
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0); setTimeout(() => cvs.classList.remove('hiddenBottom'), 0);