mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
fix disappearing phrase list
This commit is contained in:
parent
39edaea47c
commit
5667416d89
3 changed files with 28 additions and 24 deletions
|
|
@ -1,5 +1,20 @@
|
|||
use crate::*;
|
||||
|
||||
impl Content for PhrasePool<Tui> {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||
col!(
|
||||
"Phrases:",
|
||||
col!((i, phrase) in self.phrases.iter().enumerate() => format!("{i}"))
|
||||
)
|
||||
.fill_xy()
|
||||
.bg(Color::Rgb(28, 35, 25))
|
||||
.border(Lozenge(Style::default()
|
||||
.bg(Color::Rgb(40, 50, 30))
|
||||
.fg(Color::Rgb(70, 80, 50))))
|
||||
}
|
||||
}
|
||||
|
||||
impl Sequencer<Tui> {
|
||||
const H_KEYS_OFFSET: usize = 5;
|
||||
/// Select which pattern to display. This pre-renders it to the buffer at full resolution.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue