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

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

More visible than just bold.
parent 07a13d9c
No related branches found
No related tags found
No related merge requests found
...@@ -775,11 +775,14 @@ pub fn draw() void { ...@@ -775,11 +775,14 @@ pub fn draw() void {
ui.style(.hd); ui.style(.hd);
ui.move(ui.rows-1, 0); ui.move(ui.rows-1, 0);
ui.hline(' ', ui.cols); 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.style(if (main.config.show_blocks) .bold_hd else .hd);
ui.addstr("Total disk usage: "); ui.addstr("Total disk usage: ");
ui.addsize(.hd, util.blocksToSize(dir_parent.entry.pack.blocks)); ui.addsize(.hd, util.blocksToSize(dir_parent.entry.pack.blocks));
ui.style(if (main.config.show_blocks) .hd else .bold_hd); ui.style(if (main.config.show_blocks) .hd else .bold_hd);
ui.addstr(" ");
ui.addch(if (main.config.show_blocks) ' ' else '*');
ui.addstr("Apparent size: "); ui.addstr("Apparent size: ");
ui.addsize(.hd, dir_parent.entry.size); ui.addsize(.hd, dir_parent.entry.size);
ui.addstr(" Items: "); ui.addstr(" Items: ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment