From f8994d3e2d22962d4262adaf3acca36be0e62f56 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sat, 26 Apr 2025 18:13:14 +0300 Subject: [PATCH] add menu with stub options --- crates/app/src/view.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/app/src/view.rs b/crates/app/src/view.rs index 51d7c34e..1d15e0f8 100644 --- a/crates/app/src/view.rs +++ b/crates/app/src/view.rs @@ -881,7 +881,9 @@ impl Content for Modal { impl Modal { fn view_menu (&self) -> impl Content { - "menu" + let options = ||["Projects", "Settings", "Help", "Quit"].iter(); + let option = |a,i|Tui::fg(Color::Rgb(255,255,255), format!("{}", a)); + Bsp::s(Tui::bold(true, "tek!"), Bsp::s("", Map::south(1, options, option))) } fn view_help (&self) -> impl Content { let bindings = ||TokenIter::new(include_str!("../edn/groovebox_keys.edn"))