mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
sampler: enable recording
This commit is contained in:
parent
2877545140
commit
3b5c23f68c
5 changed files with 16 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue