Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b438065c23 | |||
| 0fa26db116 |
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cm-player"
|
name = "cm-player"
|
||||||
version = "0.1.27"
|
version = "0.1.29"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -321,12 +321,17 @@ fn render_right_panel(frame: &mut Frame, state: &mut AppState, area: Rect, _tab_
|
|||||||
let is_selected = state.focus_playlist && idx == state.selected_playlist_index;
|
let is_selected = state.focus_playlist && idx == state.selected_playlist_index;
|
||||||
let is_playing = idx == state.playlist_index;
|
let is_playing = idx == state.playlist_index;
|
||||||
|
|
||||||
|
// Add playing indicator arrow
|
||||||
|
let indicator = if is_playing { "▸ " } else { " " };
|
||||||
|
|
||||||
// Build line with search highlighting if searching
|
// Build line with search highlighting if searching
|
||||||
let line = if in_playlist_search && !playlist_search_query.is_empty() {
|
let mut line_spans = vec![Span::raw(indicator)];
|
||||||
Line::from(highlight_search_matches(&filename, &playlist_search_query, is_selected))
|
if in_playlist_search && !playlist_search_query.is_empty() {
|
||||||
|
line_spans.extend(highlight_search_matches(&filename, &playlist_search_query, is_selected));
|
||||||
} else {
|
} else {
|
||||||
Line::from(filename)
|
line_spans.push(Span::raw(filename));
|
||||||
};
|
}
|
||||||
|
let line = Line::from(line_spans);
|
||||||
|
|
||||||
let style = if is_selected && is_playing {
|
let style = if is_selected && is_playing {
|
||||||
// Both selected and playing: selection bar with bold
|
// Both selected and playing: selection bar with bold
|
||||||
|
|||||||
Reference in New Issue
Block a user