feat: add audio visualizer #3
+6
-6
@@ -464,7 +464,7 @@ fn render_visualizer(f: &mut Frame, area: Rect, bar_values: &[u64]) {
|
||||
.collect();
|
||||
|
||||
let viz_paragraph = Paragraph::new(line)
|
||||
.style(Style::default().fg(Color::Cyan))
|
||||
.style(Style::default().fg(Color::Rgb(200, 184, 224)))
|
||||
.alignment(Alignment::Center);
|
||||
|
||||
f.render_widget(viz_paragraph, area);
|
||||
@@ -554,11 +554,11 @@ fn main() -> Result<(), io::Error> {
|
||||
let time_str = format!("{:02}:{:02}", minutes, seconds);
|
||||
|
||||
let time_color = if !termato.is_running {
|
||||
Color::Yellow
|
||||
Color::Rgb(212, 200, 122)
|
||||
} else {
|
||||
match termato.mode {
|
||||
TimerMode::Work => Color::Red,
|
||||
TimerMode::Break => Color::Green,
|
||||
TimerMode::Work => Color::Rgb(212, 115, 115),
|
||||
TimerMode::Break => Color::Rgb(126, 200, 192),
|
||||
}
|
||||
};
|
||||
|
||||
@@ -643,7 +643,7 @@ fn main() -> Result<(), io::Error> {
|
||||
let help_block = Block::default()
|
||||
.title(" Controls ")
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Style::default().fg(Color::DarkGray));
|
||||
.border_style(Style::default().fg(Color::Rgb(58, 62, 70)));
|
||||
|
||||
let help_content = Paragraph::new(
|
||||
"[Space] Pause / Resume\n\
|
||||
@@ -653,7 +653,7 @@ fn main() -> Result<(), io::Error> {
|
||||
[Q] Quit",
|
||||
)
|
||||
.block(help_block)
|
||||
.style(Style::default().fg(Color::DarkGray))
|
||||
.style(Style::default().fg(Color::Rgb(224, 228, 232)))
|
||||
.alignment(Alignment::Left);
|
||||
|
||||
f.render_widget(Clear, popup_area);
|
||||
|
||||
Reference in New Issue
Block a user