From ca0345a0b412733132852d191eb519b603c830b2 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Wed, 2 Oct 2019 05:37:31 -0700 Subject: [PATCH] Fix a bug with subreddit module row colour Even and odd rows now display as different colours when row colour is explicitly defined in the module config. --- cfg/common_settings.go | 2 +- modules/pagerduty/widget.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg/common_settings.go b/cfg/common_settings.go index 7ce7000e..e2032cd3 100644 --- a/cfg/common_settings.go +++ b/cfg/common_settings.go @@ -93,7 +93,7 @@ func NewCommonSettingsFromModule(name, defaultTitle string, defaultFocusable boo } common.Colors.Rows.Even = moduleConfig.UString("colors.rows.even", colorsConfig.UString("rows.even", "white")) - common.Colors.Rows.Odd = moduleConfig.UString("colors.rows.even", colorsConfig.UString("rows.odd", "lightblue")) + common.Colors.Rows.Odd = moduleConfig.UString("colors.rows.odd", colorsConfig.UString("rows.odd", "lightblue")) common.Sigils.Checkbox.Checked = globalSettings.UString(sigilsPath+".checkbox.checked", "x") common.Sigils.Checkbox.Unchecked = globalSettings.UString(sigilsPath+".checkbox.unchecked", " ") diff --git a/modules/pagerduty/widget.go b/modules/pagerduty/widget.go index ef2413c4..f8fb3858 100644 --- a/modules/pagerduty/widget.go +++ b/modules/pagerduty/widget.go @@ -100,7 +100,7 @@ func (widget *Widget) contentFrom(onCalls []pagerduty.OnCall, incidents []pagerd sort.Strings(keys) if len(keys) > 0 { - str += "\n[red] Schedules[white]\n" + str += "[red] Schedules[white]\n" // Print out policies, and escalation order of users for _, key := range keys { str += fmt.Sprintf("\n [green::b]%s\n", key)