Use better icons for RSS articles

PR #20587.
Closes #20579.
This commit is contained in:
Vladimir Golovnev 2024-03-22 18:46:25 +03:00 committed by Vladimir Golovnev (Glassez)
parent c0e0e36d10
commit daaaa11f93
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
5 changed files with 7 additions and 3 deletions

View file

@ -104,7 +104,7 @@ void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle)
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)}; const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)};
item->setData(Qt::ForegroundRole, foregroundBrush); item->setData(Qt::ForegroundRole, foregroundBrush);
item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"loading"_s, u"sphere"_s)); item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"rss_read_article"_s, u"sphere"_s));
checkInvariant(); checkInvariant();
} }
@ -131,13 +131,13 @@ QListWidgetItem *ArticleListWidget::createItem(RSS::Article *article) const
{ {
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)}; const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)};
item->setData(Qt::ForegroundRole, foregroundBrush); item->setData(Qt::ForegroundRole, foregroundBrush);
item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"loading"_s, u"sphere"_s)); item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"rss_read_article"_s, u"sphere"_s));
} }
else else
{ {
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.UnreadArticle"_s)}; const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.UnreadArticle"_s)};
item->setData(Qt::ForegroundRole, foregroundBrush); item->setData(Qt::ForegroundRole, foregroundBrush);
item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"loading"_s, u"sphere"_s)); item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(u"rss_unread_article"_s, u"sphere"_s));
} }
return item; return item;

View file

@ -149,6 +149,8 @@ inline QSet<QString> defaultUIThemeIcons()
u"queued"_s, u"queued"_s,
u"ratio"_s, u"ratio"_s,
u"reannounce"_s, u"reannounce"_s,
u"rss_read_article"_s,
u"rss_unread_article"_s,
u"security-high"_s, u"security-high"_s,
u"security-low"_s, u"security-low"_s,
u"set-location"_s, u"set-location"_s,

View file

@ -331,6 +331,8 @@
<file>queued.svg</file> <file>queued.svg</file>
<file>ratio.svg</file> <file>ratio.svg</file>
<file>reannounce.svg</file> <file>reannounce.svg</file>
<file>rss_read_article.png</file>
<file>rss_unread_article.png</file>
<file>security-high.svg</file> <file>security-high.svg</file>
<file>security-low.svg</file> <file>security-low.svg</file>
<file>set-location.svg</file> <file>set-location.svg</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B