mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
focus is weird
This commit is contained in:
parent
f5d02f9f08
commit
7b568c55b8
4 changed files with 24 additions and 27 deletions
|
|
@ -249,7 +249,7 @@ fn draw_vertical (s: &Sequencer, buf: &mut Buffer, area: Rect, beat: usize) -> U
|
|||
let Rect { x, y, .. } = area;
|
||||
let (time0, time1) = s.time_axis;
|
||||
let (note0, note1) = s.note_axis;
|
||||
let _bw = Style::default().dim();
|
||||
let bw = Style::default().dim().on_black();
|
||||
let bg = Style::default().on_black();
|
||||
for key in note0..note1 {
|
||||
let x = x + 5 + key - note0;
|
||||
|
|
@ -295,7 +295,7 @@ fn draw_vertical (s: &Sequencer, buf: &mut Buffer, area: Rect, beat: usize) -> U
|
|||
(true, true) => ("█", bg),
|
||||
(true, false) => ("▀", bg),
|
||||
(false, true) => ("▄", bg),
|
||||
(false, false) => (" ", bg),
|
||||
(false, false) => ("·", bw),
|
||||
};
|
||||
buf.set_string(x + 5 + k - note0, y, character, style);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue