1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-400 Partial conversion to new Common settings

This commit is contained in:
Chris Cummer
2019-04-18 19:02:08 -07:00
parent f09d08bda2
commit 59f0bc6cfc
8 changed files with 89 additions and 49 deletions

View File

@@ -63,13 +63,13 @@ func (widget *Widget) textContent(items []Ticket) string {
}
func (widget *Widget) format(ticket Ticket, idx int) string {
var str string
requesterName := widget.parseRequester(ticket)
textColor := wtf.Config.UString("wtf.colors.background", "green")
textColor := widget.settings.common.Colors.Background
if idx == widget.selected {
textColor = wtf.Config.UString("wtf.colors.background", "orange")
textColor = widget.settings.common.Colors.BorderFocused
}
str = fmt.Sprintf(" [%s:]%d - %s\n %s\n\n", textColor, ticket.Id, requesterName, ticket.Subject)
requesterName := widget.parseRequester(ticket)
str := fmt.Sprintf(" [%s:]%d - %s\n %s\n\n", textColor, ticket.Id, requesterName, ticket.Subject)
return str
}