diff --git a/retroshare-gui/src/gui/RemoteDirModel.cpp b/retroshare-gui/src/gui/RemoteDirModel.cpp index 581c07b12..91037b277 100644 --- a/retroshare-gui/src/gui/RemoteDirModel.cpp +++ b/retroshare-gui/src/gui/RemoteDirModel.cpp @@ -237,8 +237,25 @@ QString RemoteDirModel::getAgeIndicatorString(const DirDetails &details) const rsFiles->FileDetails(details.hash, 0, finfo); if(details.min_age > ageIndicator) + { return Qt::gray ; - else + } + else if (ageIndicator == IND_LAST_DAY ) + { + // color green + return QBrush(QColor(0, 191, 6)); + } + else if (ageIndicator == IND_LAST_WEEK ) + { + //color yellow + return QBrush(QColor(234, 160, 0)); + } + else if (ageIndicator == IND_LAST_MONTH ) + { + //color red + return QBrush(QColor(228, 70, 69)); + } + else return Qt::black ; }