From 960661e93a23714095bd593467747f14a154824b Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Fri, 3 Mar 2023 08:46:09 +0100 Subject: [PATCH] UI: Add * indicator to apparent size/disk usage selection + spacing Backport of zig/ca1f293310d5eaa00cf143f4c7e85965a4e76999 --- src/browser.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/browser.c b/src/browser.c index 71251e4..92960e7 100644 --- a/src/browser.c +++ b/src/browser.c @@ -289,15 +289,18 @@ void browse_draw(void) { mvhline(winrows-1, 0, ' ', wincols); if(t) { if(!show_as) attron(A_BOLD); - mvaddstr(winrows-1, 0, " Total disk usage: "); + mvaddchc(UIC_HD, winrows-1, 0, show_as ? ' ' : '*'); + addstr("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: "); + addstrc(UIC_HD, " "); + addchc(UIC_HD, show_as ? '*' : ' '); + 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: "); + addstrc(UIC_HD, " Items: "); uic_set(UIC_NUM_HD); printw("%d", t->parent->items); } else -- GitLab