This commit is contained in:
@@ -719,12 +719,21 @@ fn render_modal(
|
||||
.iter()
|
||||
.map(|e| (e.name.clone(), e.is_dir, e.is_cagire()))
|
||||
.collect();
|
||||
FileBrowserModal::new("Add Sample Path", &state.input, &entries)
|
||||
let hints = hint_line(&[
|
||||
("\u{2190}", "parent"),
|
||||
("\u{2192}", "enter"),
|
||||
("Enter", "add"),
|
||||
("Esc", "cancel"),
|
||||
]);
|
||||
FileBrowserModal::new("Browse Samples", &state.input, &entries)
|
||||
.selected(state.selected)
|
||||
.scroll_offset(state.scroll_offset)
|
||||
.border_color(theme.modal.rename)
|
||||
.width(60)
|
||||
.height(18)
|
||||
.audio_counts(&state.audio_counts)
|
||||
.hints(hints)
|
||||
.color_path()
|
||||
.width(70)
|
||||
.height(20)
|
||||
.render_centered(frame, term)
|
||||
}
|
||||
Modal::Editor => {
|
||||
|
||||
Reference in New Issue
Block a user