Krolyxon
Commit 412e00f

rmptui412e00f

remove unsused draw_playlist

Author
krolxon
Date
2024-04-30 13:31 +0530
Parent
d0b76c3
Commit
412e00f510fdfdd405c4111bf2d8a3acd4fc8285

+0 −26

1 file changed

  1. M src/ui.rs +0 −26
M src/ui.rs View
@@ -254,32 +254,6 @@ fn draw_queue(frame: &mut Frame, app: &mut App, size: Rect) {
254254 frame.render_stateful_widget(table, size, &mut state);
255255 }
256256
257−/// draws all playlists
258−fn draw_playlists(frame: &mut Frame, app: &mut App, size: Rect) {
259− let mut state = ListState::default();
260−
261− let title = Block::default()
262− .title(Title::from("Playlist".green().bold()))
263− .title(
264− Title::from(format!("Volume: {}%", app.conn.volume).bold().green())
265− .alignment(Alignment::Right),
266− );
267−
268− let list = List::new(app.pl_list.list.clone())
269− .block(title.borders(Borders::ALL))
270− .highlight_style(
271− Style::new()
272− .fg(Color::Cyan)
273− .bg(Color::Black)
274− .add_modifier(Modifier::BOLD)
275− .add_modifier(Modifier::REVERSED),
276− )
277− .highlight_symbol(">>")
278− .repeat_highlight_symbol(true);
279−
280− state.select(Some(app.pl_list.index));
281− frame.render_stateful_widget(list, size, &mut state);
282−}
283257
284258 // Draw search bar
285259 fn draw_search_bar(frame: &mut Frame, app: &mut App, size: Rect) {