add no. of items in queue list title
This commit is contained in:
parent
0c7f0c10f5
commit
9dceaccb3e
|
|
@ -65,7 +65,6 @@ impl App {
|
||||||
pub fn tick(&mut self) {
|
pub fn tick(&mut self) {
|
||||||
self.conn.update_status();
|
self.conn.update_status();
|
||||||
self.update_queue();
|
self.update_queue();
|
||||||
// self.browser.update_directory(&mut self.conn).unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn quit(&mut self) {
|
pub fn quit(&mut self) {
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ fn draw_queue(frame: &mut Frame, app: &mut App, size: Rect) {
|
||||||
let mut queue_state = ListState::default();
|
let mut queue_state = ListState::default();
|
||||||
let title = Block::default()
|
let title = Block::default()
|
||||||
.title(Title::from("Play Queue".green().bold()))
|
.title(Title::from("Play Queue".green().bold()))
|
||||||
|
.title(Title::from(format!("({} items)", app.queue_list.list.len()).bold()))
|
||||||
.title(
|
.title(
|
||||||
Title::from(format!("Volume: {}%", app.conn.volume).bold().green())
|
Title::from(format!("Volume: {}%", app.conn.volume).bold().green())
|
||||||
.alignment(Alignment::Right),
|
.alignment(Alignment::Right),
|
||||||
|
|
|
||||||
Reference in New Issue