File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,9 @@ func (task *Task) Display() {
168168func (t * Task ) Style () RowStyle {
169169 now := time .Now ()
170170 style := RowStyle {}
171- active := t .Status == STATUS_ACTIVE
172- paused := t .Status == STATUS_PAUSED
173- resolved := t .Status == STATUS_RESOLVED
171+ active := t .Status == STATUS_ACTIVE
172+ paused := t .Status == STATUS_PAUSED
173+ resolved := t .Status == STATUS_RESOLVED
174174
175175 getFg := func (normalColor , activeColor int ) int {
176176 if active {
@@ -179,10 +179,10 @@ func (t *Task) Style() RowStyle {
179179 return normalColor
180180 }
181181
182- if ! t .Due .IsZero () && t .Due .Before (now ) && ! resolved {
182+ if t .Priority == PRIORITY_CRITICAL {
183+ style .Fg = getFg (FG_PRIORITY_CRITICAL , FG_ACTIVE_PRIORITY_CRITICAL )
184+ } else if ! t .Due .IsZero () && t .Due .Before (now ) && ! resolved {
183185 style .Fg = getFg (FG_PRIORITY_HIGH , FG_ACTIVE_PRIORITY_HIGH )
184- } else if t .Priority == PRIORITY_CRITICAL {
185- style .Fg = getFg (FG_PRIORITY_CRITICAL ,FG_ACTIVE_PRIORITY_CRITICAL )
186186 } else if t .Priority == PRIORITY_HIGH {
187187 style .Fg = getFg (FG_PRIORITY_HIGH , FG_ACTIVE_PRIORITY_HIGH )
188188 } else if t .Priority == PRIORITY_LOW {
You can’t perform that action at this time.
0 commit comments