diff options
author | Quan Tong <quantonganh@gmail.com> | 2022-03-26 15:09:34 +0700 |
---|---|---|
committer | Quan Tong <quantonganh@gmail.com> | 2022-03-26 15:09:34 +0700 |
commit | 3f903c796c26f17bfd7ee1129b94863fcb38ddfd (patch) | |
tree | 1dd5cebf2dcda4a5fd94f74a54951340efd0b541 /layout | |
parent | e0165a228378dad026353736f433269307b88190 (diff) |
Fixes #174: different colors for download/upload
Diffstat (limited to 'layout')
-rw-r--r-- | layout/layout.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layout/layout.go b/layout/layout.go index 6ae2612..8855aa7 100644 --- a/layout/layout.go +++ b/layout/layout.go @@ -6,6 +6,7 @@ import ( "strings" "github.com/xxxserxxx/lingo/v2" + "github.com/xxxserxxx/gotop/v4" "github.com/xxxserxxx/gotop/v4/widgets" @@ -186,9 +187,9 @@ func makeWidget(c gotop.Config, widRule widgetRule) interface{} { w = t case "net": n := widgets.NewNetWidget(c.NetInterface) - n.Lines[0].LineColor = ui.Color(c.Colorscheme.Sparkline) + n.Lines[0].LineColor = ui.Color(c.Colorscheme.Sparklines[0]) n.Lines[0].TitleColor = ui.Color(c.Colorscheme.BorderLabel) - n.Lines[1].LineColor = ui.Color(c.Colorscheme.Sparkline) + n.Lines[1].LineColor = ui.Color(c.Colorscheme.Sparklines[1]) n.Lines[1].TitleColor = ui.Color(c.Colorscheme.BorderLabel) n.Mbps = c.Mbps w = n |