diff options
author | Joe <rbo@gmx.us> | 2024-01-19 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-19 20:20:20 +0100 |
commit | 3876a302edba4e160102e88bdd8f35eef63735e0 (patch) | |
tree | 99edc4a6adf3fed16f5a26870ee1414aebdc6a4e /i_host.go | |
parent | go (diff) | |
download | hardflip-3876a302edba4e160102e88bdd8f35eef63735e0.tar.gz hardflip-3876a302edba4e160102e88bdd8f35eef63735e0.tar.bz2 hardflip-3876a302edba4e160102e88bdd8f35eef63735e0.tar.xz hardflip-3876a302edba4e160102e88bdd8f35eef63735e0.tar.zst hardflip-3876a302edba4e160102e88bdd8f35eef63735e0.zip |
ok
Diffstat (limited to '')
-rw-r--r-- | i_host.go | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -99,7 +99,7 @@ func i_host_panel_host(ui HardUI, icons bool, style, text) } -func i_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, " Hosts ", false) @@ -129,26 +129,3 @@ func i_host_panel(ui HardUI, icons bool, litems *ItemsList, data *HardData) { } } } - -func i_scrollhint(ui HardUI, litems *ItemsList) { - if litems.head == nil { - return - } - h := ui.dim[H] - 4 - max := litems.last.ID - if max <= h { - return - } - draw_id := litems.draw.ID - if draw_id > 1 { - ui.s.SetContent(0, 1, - '▲', - nil, ui.def_style) - } - if max - draw_id > h { - ui.s.SetContent(0, ui.dim[H] - 3, - '▼', - nil, ui.def_style) - return - } -} |