browse phrases

This commit is contained in:
🪞👃🪞 2024-06-30 19:38:51 +03:00
parent 625956766e
commit 83830d9cb3
9 changed files with 86 additions and 84 deletions

View file

@ -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();