Commit e39438fb authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Do not use "due today" color for completed to-dos in Agenda View

Do not use the "due today" color for the background color of a to-do in
the Agenda View if the to-do has been completed.  This is consistent with
to-do colors in the Month View.

BUG: 122776
parent 4b3204f0
Pipeline #81551 failed with stage
in 2 minutes and 14 seconds
...@@ -1123,7 +1123,7 @@ QColor AgendaItem::getBackgroundColor(const QColor &resourceColor, const QColor ...@@ -1123,7 +1123,7 @@ QColor AgendaItem::getBackgroundColor(const QColor &resourceColor, const QColor
const QDate occurrenceDate = this->occurrenceDate(); const QDate occurrenceDate = this->occurrenceDate();
if (todo->isOverdue() && today >= occurrenceDate) { if (todo->isOverdue() && today >= occurrenceDate) {
return mEventView->preferences()->todoOverdueColor(); return mEventView->preferences()->todoOverdueColor();
} else if (dueDate == today && dueDate == occurrenceDate) { } else if (dueDate == today && dueDate == occurrenceDate && !todo->isCompleted()) {
return mEventView->preferences()->todoDueTodayColor(); return mEventView->preferences()->todoDueTodayColor();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment