From 4006790e5516c63ed32ccedb300ee04de8f25f53 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 11 Nov 2022 07:26:58 +0100 Subject: [PATCH] enable coloring for ALL unread feeds, not just feeds with new messages --- .../io.github.martinrotter.rssguard.metainfo.xml | 2 +- src/librssguard/services/abstract/feed.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/resources/desktop/io.github.martinrotter.rssguard.metainfo.xml b/resources/desktop/io.github.martinrotter.rssguard.metainfo.xml index a68a71db6..4f71a292a 100644 --- a/resources/desktop/io.github.martinrotter.rssguard.metainfo.xml +++ b/resources/desktop/io.github.martinrotter.rssguard.metainfo.xml @@ -60,7 +60,7 @@ - + rssguard diff --git a/src/librssguard/services/abstract/feed.cpp b/src/librssguard/services/abstract/feed.cpp index 58838a7cd..7a36e268d 100644 --- a/src/librssguard/services/abstract/feed.cpp +++ b/src/librssguard/services/abstract/feed.cpp @@ -61,6 +61,14 @@ QVariant Feed::data(int column, int role) const { case Status::NewMessages: return qApp->skins()->currentSkin().colorForModel(SkinEnums::PaletteColors::FgSelectedInteresting); + case Status::Normal: + if (countOfUnreadMessages() > 0) { + return qApp->skins()->currentSkin().colorForModel(SkinEnums::PaletteColors::FgSelectedInteresting); + } + else { + return QVariant(); + } + case Status::NetworkError: case Status::ParsingError: case Status::AuthError: @@ -76,6 +84,14 @@ QVariant Feed::data(int column, int role) const { case Status::NewMessages: return qApp->skins()->currentSkin().colorForModel(SkinEnums::PaletteColors::FgInteresting); + case Status::Normal: + if (countOfUnreadMessages() > 0) { + return qApp->skins()->currentSkin().colorForModel(SkinEnums::PaletteColors::FgInteresting); + } + else { + return QVariant(); + } + case Status::NetworkError: case Status::ParsingError: case Status::AuthError: