main: show a more clear recording/paused status indicator
This commit is contained in:
+20
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user