fixed loading bar colors

Nathan DECHER 5 years ago
parent c90bfd5103
commit c850d9ffa9
  1. 4
      src/js/assets.js

@ -38,8 +38,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, '#930a16', '#23090d')); bar.addUpdateListener(() => bar.draw(cvs, '#fba49b', '#930a16'));
bar.draw(cvs, '#930a16', '#23090d'); bar.draw(cvs, '#fba49b', '#930a16');
document.body.appendChild(cvs); document.body.appendChild(cvs);
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0); setTimeout(() => cvs.classList.remove('hiddenBottom'), 0);

Loading…
Cancel
Save