diff --git a/src/device/chain.rs b/src/device/chain.rs index e8eea1de..c7fd1da8 100644 --- a/src/device/chain.rs +++ b/src/device/chain.rs @@ -48,7 +48,17 @@ pub fn render (state: &Chain, buf: &mut Buffer, area: Rect) }, ChainView::Column => { let (area, areas) = draw_column(&state.items, buf, area, 0)?; - draw_box_styled(buf, area, Some(Style::default().dim())) + draw_box_styled(buf, area, Some(if state.focused { + Style::default().dim() + } else { + Style::default().not_dim() + })); + draw_box_styled(buf, areas[state.focus], Some(if state.focused { + Style::default().green().not_dim() + } else { + Style::default().green().dim() + })); + area }, }) //let area = Rect { x, y, width: 40, height: 30 }; diff --git a/src/device/plugin.rs b/src/device/plugin.rs index 21c07caf..3e5abc7d 100644 --- a/src/device/plugin.rs +++ b/src/device/plugin.rs @@ -49,7 +49,7 @@ pub fn render (state: &Plugin, buf: &mut Buffer, Rect { x, y, .. }: Rect) Some(PluginKind::LV2(ports, instance)) => { let mut height = 3; for (i, port) in ports.iter().skip(state.parameter_offset).enumerate() { - if i >= 20 { + if i >= 30 { break } buf.set_string(x + 2, y + 3 + i as u16, &format!("{:30} = {:03}", @@ -58,7 +58,7 @@ pub fn render (state: &Plugin, buf: &mut Buffer, Rect { x, y, .. }: Rect) ), Style::default()); height = height + 1; } - Ok(draw_box(buf, Rect { x, y, width: 50, height: height.max(20) })) + Ok(draw_box(buf, Rect { x, y, width: 50, height: height.max(30) })) }, _ => { buf.set_string(x + 1, y + 3, &format!(" Parameter 1 0.0"), style);