diff options
author | Yorhel <git@yorhel.nl> | 2023-03-03 08:41:55 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2023-03-03 08:42:09 +0100 |
commit | ca1f293310d5eaa00cf143f4c7e85965a4e76999 (patch) | |
tree | af9ce2a9b268c0e3a23bba83c645e1f091ccd9b4 | |
parent | 07a13d9c7397c3341f430e1127e7287fe53ba8b9 (diff) |
UI: Add * indicator to apparent size/disk usage selection + spacing
More visible than just bold.
-rw-r--r-- | src/browser.zig | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/browser.zig b/src/browser.zig index f6478c4..4e1f4da 100644 --- a/src/browser.zig +++ b/src/browser.zig @@ -775,14 +775,17 @@ pub fn draw() void { ui.style(.hd); ui.move(ui.rows-1, 0); ui.hline(' ', ui.cols); - ui.move(ui.rows-1, 1); + ui.move(ui.rows-1, 0); + ui.addch(if (main.config.show_blocks) '*' else ' '); ui.style(if (main.config.show_blocks) .bold_hd else .hd); ui.addstr("Total disk usage: "); ui.addsize(.hd, util.blocksToSize(dir_parent.entry.pack.blocks)); ui.style(if (main.config.show_blocks) .hd else .bold_hd); - ui.addstr(" Apparent size: "); + ui.addstr(" "); + ui.addch(if (main.config.show_blocks) ' ' else '*'); + ui.addstr("Apparent size: "); ui.addsize(.hd, dir_parent.entry.size); - ui.addstr(" Items: "); + ui.addstr(" Items: "); ui.addnum(.hd, dir_parent.items); switch (state) { |