Switch 'past' events to 'HiBlack','Faint' color

This commit is contained in:
Brian Buller 2018-11-05 06:51:50 -06:00
parent 25f37688bb
commit 3ab6dc9e21

View File

@ -62,7 +62,7 @@ func (e *Event) GetColorizedDateTimeString() string {
tmString := e.GetStartTimeString() + " - " + e.GetEndTimeString()
if time.Until(e.GetStartTime()) < 0 && time.Until(e.GetEndTime()) < 0 {
// Event is in the past
return color.New(color.FgGreen).Sprint("[" + tmString + "]")
return color.New(color.FgHiBlack).Add(color.Faint).Sprint("[" + tmString + "]")
} else if time.Until(e.GetStartTime()) < 0 && time.Until(e.GetEndTime()) > 0 {
// Event is NOW
return color.New(color.FgRed).Add(color.Bold).Sprint("[" + tmString + "]")