diff options
author | Florrie <towerofnix@gmail.com> | 2019-09-26 21:59:08 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-09-26 21:59:08 -0300 |
commit | 1418f06eda87edd99ae5bce4f29247e486930bcb (patch) | |
tree | f7d247faeba4674282682e65e9e528ef1b121dc2 | |
parent | 84d0985b40fcf7864dd14d181c74591196c0d415 (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.js | 5 |
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 { |