sampler: enable recording

This commit is contained in:
🪞👃🪞 2025-04-25 21:08:41 +03:00
parent 2877545140
commit 3b5c23f68c
5 changed files with 16 additions and 3 deletions

View file

@ -25,7 +25,14 @@ impl Sampler {
let cursor = self.cursor();
let hi_fg = Color::Rgb(64, 64, 64);
let hi_bg = if y == 0 { Color::Reset } else { Color::Rgb(64, 64, 64) /*prev*/ };
let tx_fg = Color::Rgb(255, 255, 255);
let tx_fg = if let Some((index, _)) = self.recording
&& index % 8 == x as usize
&& index / 8 == y as usize
{
Color::Rgb(255, 64, 0)
} else {
Color::Rgb(255, 255, 255)
};
let tx_bg = if x as usize == cursor.0 && y as usize == cursor.1 {
Color::Rgb(96, 96, 96)
} else {