main: show a more clear recording/paused status indicator

This commit is contained in:
2026-06-08 10:27:42 +02:00
parent 781d031484
commit 50c55f0887
+20 -1
View File
@@ -324,7 +324,26 @@ impl App {
self.draw_user_input(frame, layout[2]); self.draw_user_input(frame, layout[2]);
self.draw_io_throbber(frame, status_layout[0]); self.draw_io_throbber(frame, status_layout[0]);
self.draw_status(frame, status_layout[1]); self.draw_status(frame, status_layout[1]);
self.draw_volume(frame, status_layout[2]); self.draw_recording_status(frame, status_layout[2]);
self.draw_volume(frame, status_layout[3]);
}
fn draw_recording_status(&self, frame: &mut Frame, area: Rect) {
frame.render_widget(Line::from_iter(
if self.recording_audio {
[
Span::from(" "),
Span::from(" Recording ").bg(style::Color::LightRed).fg(style::Color::White),
Span::from(" ")
]
} else {
[
Span::from(" "),
Span::from(" Stopped ").bg(style::Color::DarkGray).fg(style::Color::White),
Span::from(" ")
]
}
), area);
} }
fn draw_volume(&self, frame: &mut Frame, area: Rect) { fn draw_volume(&self, frame: &mut Frame, area: Rect) {