diff options
author | Yorhel <git@yorhel.nl> | 2021-05-24 10:42:48 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-05-24 10:42:51 +0200 |
commit | 67a1d84216a4cd00dd32c32575a90f00cf00aa15 (patch) | |
tree | 890c4cfe373224d415c53e1da773e93f52d69ae8 | |
parent | ebeee7be01d9331141d5fb9bc56005d4845b8b6e (diff) |
Mark apparent size or disk usage label in footer as bold
Depending on what is being displayed. Not *super* happy with this
solution, but it works.
Fixes #110.
-rw-r--r-- | src/browser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/browser.c b/src/browser.c index 28d120e..61f8858 100644 --- a/src/browser.c +++ b/src/browser.c @@ -288,9 +288,13 @@ void browse_draw() { uic_set(UIC_HD); mvhline(winrows-1, 0, ' ', wincols); if(t) { + if(!show_as) attron(A_BOLD); mvaddstr(winrows-1, 0, " Total disk usage: "); + if(!show_as) attroff(A_BOLD); printsize(UIC_HD, t->parent->size); + if(show_as) attron(A_BOLD); addstrc(UIC_HD, " Apparent size: "); + if(show_as) attroff(A_BOLD); uic_set(UIC_NUM_HD); printsize(UIC_HD, t->parent->asize); addstrc(UIC_HD, " Items: "); |