diff options
Diffstat (limited to 'src/i_host.go')
-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) |