« get me outta code hell

Make menubar easter-egg color/attribute draw deps - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-09-26 21:59:08 -0300
committerFlorrie <towerofnix@gmail.com>2019-09-26 21:59:08 -0300
commit1418f06eda87edd99ae5bce4f29247e486930bcb (patch)
treef7d247faeba4674282682e65e9e528ef1b121dc2
parent84d0985b40fcf7864dd14d181c74591196c0d415 (diff)
Make menubar easter-egg color/attribute draw deps
So pressing a/c (:33) in the menubar will now cause a rerender.
-rw-r--r--ui.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index ba7a798..7037e87 100644
--- a/ui.js
+++ b/ui.js
@@ -3776,6 +3776,11 @@ class Menubar extends ListScrollForm {
     writable.write(' '.repeat(this.w))
     writable.write(ansi.resetAttributes())
   }
+
+  get color() { return this.getDep('color') }
+  set color(v) { return this.setDep('color', v) }
+  get attribute() { return this.getDep('attribute') }
+  set attribute(v) { return this.setDep('attribute', v) }
 }
 
 class PartyBanner extends DisplayElement {