refactor: allow overriding progress bar phases

This commit is contained in:
Carlos Valente
2025-01-24 10:29:52 +01:00
committed by Carlos Valente
parent 46790441e0
commit 28452d1e38
5 changed files with 71 additions and 52 deletions
+2
View File
@@ -153,6 +153,7 @@ export default function Timer(props: TimerProps) {
fontSize: `${timerFontSize}vw`,
'--phase-color': timerColour,
}}
data-phase={time.phase}
>
{display}
</div>
@@ -175,6 +176,7 @@ export default function Timer(props: TimerProps) {
warningColor={viewSettings.warningColor}
danger={eventNow?.timeDanger}
dangerColor={viewSettings.dangerColor}
hideOvertime={!showFinished}
/>
)}