diff options
author | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-23 20:20:20 +0100 |
commit | 8afce84f357a85a7442655d5d30d67d48e42b7cd (patch) | |
tree | 4a7684306f3e1d7f4656a396e2891213f8a2edca /src/i_host.go | |
parent | go (diff) | |
download | hardflip-8afce84f357a85a7442655d5d30d67d48e42b7cd.tar.gz hardflip-8afce84f357a85a7442655d5d30d67d48e42b7cd.tar.bz2 hardflip-8afce84f357a85a7442655d5d30d67d48e42b7cd.tar.xz hardflip-8afce84f357a85a7442655d5d30d67d48e42b7cd.tar.zst hardflip-8afce84f357a85a7442655d5d30d67d48e42b7cd.zip |
ok
Diffstat (limited to '')
-rw-r--r-- | src/i_host.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i_host.go b/src/i_host.go index 5d74234..491d236 100644 --- a/src/i_host.go +++ b/src/i_host.go @@ -51,10 +51,13 @@ package main +import "github.com/gdamore/tcell/v2" + func i_host_panel_dirs(ui HardUI, icons bool, dir_icon uint8, dir *DirsNode, curr *DirsNode, line int) { style := ui.style[DIR_STYLE] if dir == curr { + style = style.Background(tcell.ColorBlack) style = style.Reverse(true) } text := "" @@ -79,6 +82,7 @@ func i_host_panel_host(ui HardUI, icons bool, depth uint16, host *HostNode, curr *HostNode, line int) { style := ui.style[DEF_STYLE] if host == curr { + // style = style.Background(tcell.ColorBlack) style = style.Reverse(true) } text := "" @@ -99,7 +103,8 @@ func i_host_panel_host(ui HardUI, icons bool, style, text) } -func i_draw_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) { +func i_draw_host_panel(ui HardUI, icons bool, + litems *ItemsList, data *HardData) { i_draw_box(ui.s, 0, 0, ui.dim[W] / 3, ui.dim[H] - 2, ui.style[BOX_STYLE], ui.style[HEAD_STYLE], " Hosts ", false) |