feat: show progress in op and cuesheet (#605)

This commit is contained in:
Carlos Valente
2023-11-24 12:04:38 +01:00
committed by GitHub
parent bf8ebe942e
commit 5be60ff6c3
19 changed files with 210 additions and 113 deletions
@@ -124,7 +124,7 @@ export default function Timer(props: TimerProps) {
if (showExternal) {
timerFontSize *= 0.8;
}
const externalFontSize = timerFontSize * 0.4
const externalFontSize = timerFontSize * 0.4;
const timerContainerClasses = `timer-container ${showBlinking ? (showOverlay ? '' : 'blink') : ''}`;
const timerClasses = `timer ${!isPlaying ? 'timer--paused' : ''} ${showFinished ? 'timer--finished' : ''}`;
@@ -170,7 +170,7 @@ export default function Timer(props: TimerProps) {
{!userOptions.hideProgress && (
<MultiPartProgressBar
className={isPlaying ? 'progress-container' : 'progress-container progress-container--paused'}
now={time.current ?? 0}
now={time.current}
complete={totalTime}
normalColor={viewSettings.normalColor}
warning={viewSettings.warningThreshold}