diff options
author | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
commit | ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8 (patch) | |
tree | adb630564b940470b01931cc46f103ab4179a381 /i_ui.go | |
parent | cool (diff) | |
download | hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.gz hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.bz2 hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.xz hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.tar.zst hardflip-ddb6cdc8b9e723dd89b2dbb81b30c282dbc685c8.zip |
gogo
Diffstat (limited to 'i_ui.go')
-rw-r--r-- | i_ui.go | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_ui.go - * Wed Jan 10 12:04:11 2024 + * Thu Jan 11 12:22:06 2024 * Joe * * interfacing with the user @@ -228,23 +228,23 @@ func i_draw_delete_box(ui HardUI, item *ItemsNode) { } func i_host_panel_dirs(ui HardUI, icons bool, - dirs *DirsNode, curr *DirsNode, line int) { + dir *DirsNode, curr *DirsNode, line int) { style := ui.dir_style - if dirs == curr { + if dir == curr { style = style.Reverse(true) } text := "" - for i := 0; i < int(dirs.Depth) - 2; i++ { + for i := 0; i < int(dir.Depth) - 2; i++ { text += " " } if icons == true { var fold_var uint8 - if dirs.Folded == true { + if dir.Folded == true { fold_var = 1 } text += DIRS_ICONS[fold_var] } - text += dirs.Name + text += dir.Name spaces := "" for i := 0; i < (ui.dim[W] / 3) - len(text) + 1; i++ { spaces += " " @@ -253,6 +253,9 @@ func i_host_panel_dirs(ui HardUI, icons bool, i_draw_text(ui.s, 1, line, ui.dim[W] / 3, line, style, text) + i_draw_text(ui.s, + ui.dim[W] / 3 - 2, line, ui.dim[W] / 3, line, + ui.def_style, strconv.Itoa(dir.count_elements(true))) } func i_host_panel_host(ui HardUI, icons bool, |