Skip to content

Commit 00cb036

Browse files
committed
Use inclusive thresholds for countdown color
Exactly 15:00 and 5:00 now fall into green and yellow respectively instead of the lower bucket.
1 parent f8584e8 commit 00cb036

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MeetingBar/UI/StatusBar/StatusBarItemController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ func countdownColor(for event: MBEvent) -> NSColor {
549549
timeRemaining = event.startDate.timeIntervalSinceNow
550550
}
551551

552-
if timeRemaining > 15 * 60 {
552+
if timeRemaining >= 15 * 60 {
553553
return .systemGreen
554-
} else if timeRemaining > 5 * 60 {
554+
} else if timeRemaining >= 5 * 60 {
555555
return .systemYellow
556556
} else {
557557
return .systemRed

0 commit comments

Comments
 (0)