Skip to content

Commit f20cb0c

Browse files
committed
feat(ui): gray out timer when paused
add visual pause indicator by removing color from timer display when session is paused.
1 parent d56c2af commit f20cb0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ui/layout.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55

66
"github.com/Bahaaio/pomo/ui/ascii"
7+
"github.com/charmbracelet/lipgloss"
78
)
89

910
const (
@@ -63,6 +64,13 @@ func (m *Model) buildTimeLeft() string {
6364

6465
if m.useTimerArt {
6566
time = ascii.RenderNumber(time, m.timerFont)
67+
68+
// remove color on pause
69+
if m.sessionState == Paused {
70+
noColor := m.asciiTimerStyle.Foreground(lipgloss.NoColor{})
71+
return noColor.Render(time)
72+
}
73+
6674
return m.asciiTimerStyle.Render(time)
6775
}
6876

0 commit comments

Comments
 (0)