Skip to content

Commit

Permalink
πŸ‘” Added Orange color for the last third of the timer
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrojreis committed Feb 19, 2024
1 parent 52c3a04 commit 2352cf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func startCountdown() {
case int(timers[currentPerson]/time.Second) < (maxTime * 2 / 3):
countdown.TextStyle = termui.NewStyle(termui.ColorYellow)
countdown.BorderStyle = termui.NewStyle(termui.ColorYellow)
case int(timers[currentPerson]/time.Second) < (maxTime):
countdown.TextStyle = termui.NewStyle(termui.Color(202))
countdown.BorderStyle = termui.NewStyle(termui.Color(202))
default:
countdown.TextStyle = termui.NewStyle(termui.ColorRed)
countdown.BorderStyle = termui.NewStyle(termui.ColorRed)
Expand Down

0 comments on commit 2352cf5

Please sign in to comment.