« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.js b/ui.js
index a221b04..88b26af 100644
--- a/ui.js
+++ b/ui.js
@@ -2046,7 +2046,12 @@ class BasicGrouplikeItemElement extends Button {
     if (isSelfSelected) {
       writable.write(ansi.invert())
     } else if (isCurrentInput) {
-      writable.write(ansi.setAttributes([ansi.A_INVERT, ansi.A_DIM]))
+      // technically cheating - isPlayable is defined on InteractiveGrouplikeElement
+      if (this.isPlayable === false) {
+        writable.write(ansi.setAttributes([ansi.A_INVERT, ansi.C_BLACK, ansi.A_BRIGHT]))
+      } else {
+        writable.write(ansi.setAttributes([ansi.A_INVERT, ansi.A_DIM]))
+      }
     }
 
     writable.write(ansi.moveCursor(this.absTop, this.absLeft))