mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
sane focus
This commit is contained in:
parent
be2c2df92b
commit
3177e4ab58
2 changed files with 13 additions and 3 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue