From 67a1d84216a4cd00dd32c32575a90f00cf00aa15 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Mon, 24 May 2021 10:42:48 +0200 Subject: [PATCH] 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. --- src/browser.c | 4 ++++ 1 file changed, 4 insertions(+) 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: ");