Skip to content
Snippets Groups Projects
Commit 960661e9 authored by Yorhel's avatar Yorhel
Browse files

UI: Add * indicator to apparent size/disk usage selection + spacing

Backport of zig/ca1f2933
parent c08340ee
No related branches found
No related tags found
No related merge requests found
...@@ -289,10 +289,13 @@ void browse_draw(void) { ...@@ -289,10 +289,13 @@ void browse_draw(void) {
mvhline(winrows-1, 0, ' ', wincols); mvhline(winrows-1, 0, ' ', wincols);
if(t) { if(t) {
if(!show_as) attron(A_BOLD); 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); if(!show_as) attroff(A_BOLD);
printsize(UIC_HD, t->parent->size); printsize(UIC_HD, t->parent->size);
if(show_as) attron(A_BOLD); if(show_as) attron(A_BOLD);
addstrc(UIC_HD, " ");
addchc(UIC_HD, show_as ? '*' : ' ');
addstrc(UIC_HD, "Apparent size: "); addstrc(UIC_HD, "Apparent size: ");
if(show_as) attroff(A_BOLD); if(show_as) attroff(A_BOLD);
uic_set(UIC_NUM_HD); uic_set(UIC_NUM_HD);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment