mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: reenabling editor
This commit is contained in:
parent
00453a7697
commit
6b073988c2
3 changed files with 31 additions and 4 deletions
|
|
@ -143,7 +143,7 @@ render!(Tui: (self: Groovebox) => {
|
|||
))),
|
||||
Bsp::n(
|
||||
MidiEditStatus(&self.editor),
|
||||
Fill::xy(&self.editor),
|
||||
&self.editor,
|
||||
),
|
||||
),
|
||||
))
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ has_size!(<Tui>|self: MidiEditor|&self.size);
|
|||
render!(Tui: (self: MidiEditor) => {
|
||||
self.autoscroll();
|
||||
self.autozoom();
|
||||
Bsp::a(&self.size, &self.mode)
|
||||
Fill::xy(Tui::bg(Color::Black, Bsp::b(&self.size, &self.mode)))
|
||||
});
|
||||
|
||||
impl MidiView<Tui> for MidiEditor {}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,36 @@ render!(Tui: (self: PianoHorizontal) => {
|
|||
let timeline = move||PianoHorizontalTimeline(self);
|
||||
let notes = move||PianoHorizontalNotes(self);
|
||||
let cursor = move||PianoHorizontalCursor(self);
|
||||
Outer(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)).enclose("kyp");
|
||||
let status = move||row!(
|
||||
//" ",
|
||||
row!("Edit:", name.to_string()), " ",
|
||||
row!("Length:", length.to_string()), " ",
|
||||
row!("Loop:", looped.to_string())
|
||||
);
|
||||
Bsp::s(
|
||||
Fixed::y(1, status()),
|
||||
Bsp::s(
|
||||
Fixed::y(1, Bsp::e(
|
||||
Fixed::x(self.keys_width, ""),
|
||||
Fill::x(timeline()),
|
||||
)),
|
||||
Fill::xy(Bsp::e(
|
||||
Fixed::x(self.keys_width, keys()),
|
||||
Fill::xy("test")
|
||||
//Fill::xy(lay!(
|
||||
//&self.size,
|
||||
//Fill::xy(lay!(
|
||||
//Fill::xy(notes()),
|
||||
//Fill::xy(cursor()),
|
||||
//))
|
||||
//)),
|
||||
)),
|
||||
)
|
||||
)
|
||||
//"kyp"
|
||||
//Outer(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)).enclose("kyp");
|
||||
//with_border(lay!(
|
||||
//Push::x(0, row!(
|
||||
//row!(
|
||||
////" ",
|
||||
//field("Edit:", name.to_string()), " ",
|
||||
//field("Length:", length.to_string()), " ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue