Browse Source

Merge pull request #13252 from jagannatharjun/fix-rss-style

Fix incorrect foreground for read articles with custom theme
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
eb32bdab34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/gui/rss/articlelistwidget.cpp

4
src/gui/rss/articlelistwidget.cpp

@ -98,7 +98,9 @@ void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle) @@ -98,7 +98,9 @@ void ArticleListWidget::handleArticleRead(RSS::Article *rssArticle)
auto item = mapRSSArticle(rssArticle);
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")));
checkInvariant();

Loading…
Cancel
Save