Monster commit: native version
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::theme::meter;
|
||||
use ratatui::buffer::Buffer;
|
||||
use ratatui::layout::Rect;
|
||||
use ratatui::style::Color;
|
||||
@@ -31,11 +32,11 @@ impl VuMeter {
|
||||
|
||||
fn row_to_color(row_position: f32) -> Color {
|
||||
if row_position > 0.9 {
|
||||
Color::Red
|
||||
meter::HIGH
|
||||
} else if row_position > 0.75 {
|
||||
Color::Yellow
|
||||
meter::MID
|
||||
} else {
|
||||
Color::Green
|
||||
meter::LOW
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user