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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user