From f5ed889304279111a2a90552f24ea5740b425954 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 1 Jun 2018 08:52:39 -0300 Subject: Format groups differently --- ui.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui.js b/ui.js index 5541d81..cbffb99 100644 --- a/ui.js +++ b/ui.js @@ -323,6 +323,11 @@ class GrouplikeItemElement extends Button { } writable.write(ansi.moveCursor(this.absTop, this.absLeft)) + + if (isGroup(this.item)) { + writable.write(ansi.setAttributes([ansi.C_BLUE, ansi.A_BRIGHT])) + } + this.drawX = this.x this.writeStatus(writable) writable.write(this.item.name.slice(0, this.w - this.drawX)) @@ -341,7 +346,9 @@ class GrouplikeItemElement extends Button { const record = this.recordStore.getRecord(this.item) writable.write(' ') - if (record.downloading) { + if (isGroup(this.item)) { + writable.write('G') + } else if (record.downloading) { writable.write(braille[Math.floor(Date.now() / 250) % 6]) } else if (record.playing) { writable.write('\u25B6') -- cgit 1.3.0-6-gf8a5