From d232014e9bb5af3dff49c8c87d433bbbdbe32912 Mon Sep 17 00:00:00 2001 From: Lucas Baumann Date: Sat, 19 Jul 2025 09:42:01 +0200 Subject: [PATCH] add sample select cursor --- src/ui/pages/sample_list.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui/pages/sample_list.rs b/src/ui/pages/sample_list.rs index fd451ad..4129ad7 100644 --- a/src/ui/pages/sample_list.rs +++ b/src/ui/pages/sample_list.rs @@ -120,7 +120,14 @@ impl Page for SampleList { .as_ref() .map(|(n, _)| n.as_str()) .unwrap_or(""); - draw_buffer.draw_string_length(name, BASE_POS + CharPosition::new(3, i), 24, 6, 0); + let background_color = if self.selected == n { 14 } else { 0 }; + draw_buffer.draw_string_length( + name, + BASE_POS + CharPosition::new(3, i), + 24, + 6, + background_color, + ); } } } -- 2.51.2