mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
improve ui legibility immensely right after release
This commit is contained in:
parent
b20ebbd7be
commit
83f840a412
5 changed files with 40 additions and 57 deletions
|
|
@ -7,11 +7,11 @@ render!(Tui: (self: MidiEditClip<'a>) => {
|
|||
} else {
|
||||
(ItemPalette::from(TuiTheme::g(64)), String::new(), 0, false)
|
||||
};
|
||||
Fixed::y(1, row!(
|
||||
Field(color, "Edit", name.to_string()),
|
||||
Field(color, "Length", length.to_string()),
|
||||
Field(color, "Loop", looped.to_string())
|
||||
))
|
||||
row!(
|
||||
FieldV(color, "Edit", name.to_string()),
|
||||
FieldV(color, "Length", length.to_string()),
|
||||
FieldV(color, "Loop", looped.to_string())
|
||||
)
|
||||
});
|
||||
|
||||
pub struct MidiEditStatus<'a>(pub &'a MidiEditor);
|
||||
|
|
@ -27,15 +27,11 @@ render!(Tui: (self: MidiEditStatus<'a>) => {
|
|||
let time_axis = self.0.time_axis().get();
|
||||
let time_zoom = self.0.time_zoom().get();
|
||||
let time_lock = if self.0.time_lock().get() { "[lock]" } else { " " };
|
||||
let time_field = Field(color, "Time", format!("{length}/{time_zoom}+{time_point} {time_lock}"));
|
||||
let time_field = FieldV(color, "Time", format!("{length}/{time_zoom}+{time_point} {time_lock}"));
|
||||
|
||||
let note_point = format!("{:>3}", self.0.note_point());
|
||||
let note_name = format!("{:4}", Note::pitch_to_name(self.0.note_point()));
|
||||
let note_len = format!("{:>4}", self.0.note_len());;;;
|
||||
let note_field = Field(color, "Note", format!("{note_name} {note_point} {note_len}"));
|
||||
|
||||
Tui::bg(color.darkest.rgb, Fill::x(Tui::fg(color.lightest.rgb, Bsp::e(
|
||||
time_field,
|
||||
note_field,
|
||||
))))
|
||||
let note_field = FieldV(color, "Note", format!("{note_name} {note_point} {note_len}"));
|
||||
Bsp::e(time_field, note_field,)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue