mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
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.
This commit is contained in:
parent
8290988213
commit
ca0345a0b4
@ -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.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.Checked = globalSettings.UString(sigilsPath+".checkbox.checked", "x")
|
||||||
common.Sigils.Checkbox.Unchecked = globalSettings.UString(sigilsPath+".checkbox.unchecked", " ")
|
common.Sigils.Checkbox.Unchecked = globalSettings.UString(sigilsPath+".checkbox.unchecked", " ")
|
||||||
|
@ -100,7 +100,7 @@ func (widget *Widget) contentFrom(onCalls []pagerduty.OnCall, incidents []pagerd
|
|||||||
sort.Strings(keys)
|
sort.Strings(keys)
|
||||||
|
|
||||||
if len(keys) > 0 {
|
if len(keys) > 0 {
|
||||||
str += "\n[red] Schedules[white]\n"
|
str += "[red] Schedules[white]\n"
|
||||||
// Print out policies, and escalation order of users
|
// Print out policies, and escalation order of users
|
||||||
for _, key := range keys {
|
for _, key := range keys {
|
||||||
str += fmt.Sprintf("\n [green::b]%s\n", key)
|
str += fmt.Sprintf("\n [green::b]%s\n", key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user