WIP: clap

This commit is contained in:
2026-02-20 22:14:21 +01:00
parent bf361d3ab9
commit 6216b9341b
76 changed files with 9103 additions and 143 deletions

View File

@@ -8,7 +8,7 @@ use tui_big_text::{BigText, PixelSize};
use crate::state::ui::UiState;
use crate::theme;
pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
pub fn render(frame: &mut Frame, area: Rect, ui: &UiState, plugin_mode: bool) {
let theme = theme::get();
frame.render_widget(&ui.sparkles, area);
@@ -39,15 +39,17 @@ pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
Line::from(Span::styled("AGPL-3.0", license_style)),
];
let keybindings = [
let mut keybindings = vec![
("Ctrl+Arrows", "Navigate Views"),
("Enter", "Edit Step"),
("Space", "Play/Stop"),
("s", "Save"),
("l", "Load"),
("q", "Quit"),
("?", "Keybindings"),
];
if !plugin_mode {
keybindings.push(("q", "Quit"));
}
keybindings.push(("?", "Keybindings"));
let key_style = Style::new().fg(theme.modal.confirm);
let desc_style = Style::new().fg(theme.ui.text_primary);