mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
Use better icons for RSS articles (#20587)
This commit is contained in:
parent
b489262f51
commit
845f9a821e
5 changed files with 7 additions and 3 deletions
|
@ -104,7 +104,7 @@ void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle)
|
|||
|
||||
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)};
|
||||
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();
|
||||
}
|
||||
|
@ -131,13 +131,13 @@ QListWidgetItem *ArticleListWidget::createItem(RSS::Article *article) const
|
|||
{
|
||||
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.ReadArticle"_s)};
|
||||
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
|
||||
{
|
||||
const QBrush foregroundBrush {UIThemeManager::instance()->getColor(u"RSS.UnreadArticle"_s)};
|
||||
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;
|
||||
|
|
|
@ -148,6 +148,8 @@ inline QSet<QString> defaultUIThemeIcons()
|
|||
u"queued"_s,
|
||||
u"ratio"_s,
|
||||
u"reannounce"_s,
|
||||
u"rss_read_article"_s,
|
||||
u"rss_unread_article"_s,
|
||||
u"security-high"_s,
|
||||
u"security-low"_s,
|
||||
u"set-location"_s,
|
||||
|
|
|
@ -330,6 +330,8 @@
|
|||
<file>queued.svg</file>
|
||||
<file>ratio.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-low.svg</file>
|
||||
<file>set-location.svg</file>
|
||||
|
|
BIN
src/icons/rss_read_article.png
Normal file
BIN
src/icons/rss_read_article.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 250 B |
BIN
src/icons/rss_unread_article.png
Normal file
BIN
src/icons/rss_unread_article.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 254 B |
Loading…
Reference in a new issue