mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
UI: Add * indicator to apparent size/disk usage selection + spacing
More visible than just bold.
This commit is contained in:
parent
07a13d9c73
commit
ca1f293310
1 changed files with 6 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue