mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Fix incorrect foreground for read articles with custom theme
This commit is contained in:
parent
e1d097a92d
commit
01849297ef
@ -98,7 +98,9 @@ void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle)
|
|||||||
auto item = mapRSSArticle(rssArticle);
|
auto item = mapRSSArticle(rssArticle);
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
|
|
||||||
item->setData(Qt::ForegroundRole, QPalette().color(QPalette::Inactive, QPalette::WindowText));
|
const QColor defaultColor {palette().color(QPalette::Inactive, QPalette::WindowText)};
|
||||||
|
const QBrush foregroundBrush {UIThemeManager::instance()->getColor("RSS.ReadArticle", defaultColor)};
|
||||||
|
item->setData(Qt::ForegroundRole, foregroundBrush);
|
||||||
item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(QLatin1String("sphere")));
|
item->setData(Qt::DecorationRole, UIThemeManager::instance()->getIcon(QLatin1String("sphere")));
|
||||||
|
|
||||||
checkInvariant();
|
checkInvariant();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user