WIP: clap
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user