summaryrefslogtreecommitdiffstats
path: root/layout
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-04-23 10:41:20 -0500
committerSean E. Russell <ser@ser1.net>2020-04-23 10:41:20 -0500
commit5ada5315d940038fcd83777b1e73797bbbada108 (patch)
tree14af5297197ecc43e50ff7cafa8154fda55dd72f /layout
parent3fcab5a42054c84895c4f6da5097360d35414fde (diff)
Fixes #92, configurable temps; help text & docs clean-up; versions are now built into binaries at compile time; clean up old extensions params; adds --list command; adds --write-config command; fixes bug in colorscheme loading; fixes bug in Colorschemes -- all had empty Name attrs; adds ability to list devices.
Diffstat (limited to 'layout')
-rw-r--r--layout/layout.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout/layout.go b/layout/layout.go
index c59e718..6fb7c58 100644
--- a/layout/layout.go
+++ b/layout/layout.go
@@ -177,7 +177,7 @@ func makeWidget(c gotop.Config, widRule widgetRule) interface{} {
assignColors(b.Data, c.Colorscheme.BattLines, b.LineColors)
w = b
case "temp":
- t := widgets.NewTempWidget(c.TempScale)
+ t := widgets.NewTempWidget(c.TempScale, c.Temps)
t.TempLowColor = ui.Color(c.Colorscheme.TempLow)
t.TempHighColor = ui.Color(c.Colorscheme.TempHigh)
w = t