feat(tui): add context-sensitive keybinds on bottom border of each panel
This commit is contained in:
1 parent
e5de3c14fc
commit
b0738761c9
5 files changed
+89
-8
No files matched your search
@@ -25,12 +25,19 @@ pub fn render(
|
||||
THEME.colors.border_unfocused
|
||||
};
|
||||
|
||||
let block = Block::default()
|
||||
let mut block = Block::default()
|
||||
.title(styled_title("Status", true))
|
||||
.borders(Borders::ALL)
|
||||
.border_type(BorderType::Rounded)
|
||||
.border_style(Style::default().fg(border_color));
|
||||
|
||||
if focused == FocusedArea::Status {
|
||||
block = block.title_bottom(
|
||||
super::popups::keybind_line(&[("S", " expand")])
|
||||
.alignment(ratatui::layout::Alignment::Right),
|
||||
);
|
||||
}
|
||||
|
||||
let state = match PROGRESS.lock() {
|
||||
Ok(s) => s.clone(),
|
||||
Err(_) => {
|
||||
|
||||
Reference in new issue
Block a user