(pomodoro) count WORK rounds (#75)

This commit is contained in:
Jens Krause
2025-04-29 16:20:02 +02:00
committed by GitHub
parent 028a067419
commit 90d9988e7a
6 changed files with 46 additions and 14 deletions

View File

@@ -149,21 +149,25 @@ impl StatefulWidget for Footer {
}),
Span::from(SPACE),
Span::from("[r]eset"),
];
if self.selected_content == Content::Pomodoro {
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[^r]eset round"),
Span::from(SPACE),
Span::from("[← →]switch work/pause"),
]);
}
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[e]dit"),
];
]);
if self.selected_content == Content::Countdown {
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[^e]dit by local time"),
]);
}
if self.selected_content == Content::Pomodoro {
spans.extend_from_slice(&[
Span::from(SPACE),
Span::from("[← →]switch work/pause"),
]);
}
spans
}
others => vec![