mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
browse phrases
This commit is contained in:
parent
625956766e
commit
83830d9cb3
9 changed files with 86 additions and 84 deletions
|
|
@ -56,7 +56,7 @@ pub fn process (_: &mut Chain, _: &Client, _: &ProcessScope) -> Control {
|
|||
pub fn render (state: &Chain, buf: &mut Buffer, area: Rect)
|
||||
-> Usually<Rect>
|
||||
{
|
||||
let Rect { mut x, mut y, width, height } = area;
|
||||
let Rect { x, y, .. } = area;
|
||||
let selected = Some(if state.focused {
|
||||
Style::default().green().not_dim()
|
||||
} else {
|
||||
|
|
@ -71,7 +71,7 @@ pub fn render (state: &Chain, buf: &mut Buffer, area: Rect)
|
|||
},
|
||||
ChainView::Row => {
|
||||
draw_box_styled(buf, area, selected);
|
||||
let (area, areas) = Row::draw(buf, area, &state.items, 0)?;
|
||||
let (area, _) = Row::draw(buf, area, &state.items, 0)?;
|
||||
area
|
||||
},
|
||||
ChainView::Column => {
|
||||
|
|
@ -172,10 +172,9 @@ pub fn draw_as_row (
|
|||
pub fn draw_as_column (
|
||||
state: &Chain, buf: &mut Buffer, area: Rect, selected: Option<Style>
|
||||
) -> Usually<Rect> {
|
||||
let Rect { x, y, width, height } = area;
|
||||
let Rect { x, mut y, width, height } = area;
|
||||
//let (area, areas) = Column::draw(buf, area, &state.items, 0)?;
|
||||
let mut w = 0u16;
|
||||
let mut y = area.y;
|
||||
let mut frames = vec![];
|
||||
for device in state.items.iter() {
|
||||
let style_midi = Style::default().black().bold().on_green();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue