mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-08-28 21:06:56 +02:00
This commit is contained in:
parent
b4424fcb69
commit
ba8ff1ae69
23 changed files with 1737 additions and 1689 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{*, clock::*, sequence::*, sampler::*};
|
||||
use crate::*;
|
||||
|
||||
def_command!(FileBrowserCommand: |sampler: Sampler|{
|
||||
//("begin" [] Some(Self::Begin))
|
||||
|
|
@ -246,7 +246,7 @@ impl<'a> PoolView<'a> {
|
|||
move|clip: Arc<RwLock<MidiClip>>, i: usize|{
|
||||
let MidiClip { ref name, color, length, .. } = *clip.read().unwrap();
|
||||
let item_height = 1;
|
||||
let item_offset = i as u16 * item_height;
|
||||
let _item_offset = i as u16 * item_height;
|
||||
let selected = i == pool.clip_index();
|
||||
let b = if selected { color.light.term } else { color.base.term };
|
||||
let f = color.lightest.term;
|
||||
|
|
@ -317,7 +317,7 @@ impl Browse {
|
|||
fn tui (&self) -> impl Draw<Tui> {
|
||||
iter_south_fixed(1, ||self.tui_entries(), |entry, _index|entry.origin_w().full_w())
|
||||
}
|
||||
fn tui_entries (&self) -> EntriesIterator<Tui> {
|
||||
fn tui_entries (&self) -> EntriesIterator<'_, Tui> {
|
||||
EntriesIterator {
|
||||
offset: 0,
|
||||
index: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue