diff --git a/src/gui/rss/rsswidget.cpp b/src/gui/rss/rsswidget.cpp index 288ad2009..25065f3b2 100644 --- a/src/gui/rss/rsswidget.cpp +++ b/src/gui/rss/rsswidget.cpp @@ -455,13 +455,17 @@ void RSSWidget::handleCurrentArticleItemChanged(QListWidgetItem *currentItem, QL auto article = m_articleListWidget->getRSSArticle(currentItem); Q_ASSERT(article); + const QString highlightedBaseColor = m_ui->textBrowser->palette().color(QPalette::Highlight).name(); + const QString highlightedBaseTextColor = m_ui->textBrowser->palette().color(QPalette::HighlightedText).name(); + const QString alternateBaseColor = m_ui->textBrowser->palette().color(QPalette::AlternateBase).name(); + QString html = - "
" - "
" + article->title() + "
"; + QString::fromLatin1("
") + + QString::fromLatin1("
%3
").arg(highlightedBaseColor, highlightedBaseTextColor, article->title()); if (article->date().isValid()) - html += "
" + tr("Date: ") + "" + article->date().toLocalTime().toString(Qt::SystemLocaleLongDate) + "
"; + html += QString::fromLatin1("
%2%3
").arg(alternateBaseColor, tr("Date: "), article->date().toLocalTime().toString(Qt::SystemLocaleLongDate)); if (!article->author().isEmpty()) - html += "
" + tr("Author: ") + "" + article->author() + "
"; + html += QString::fromLatin1("
%2%3
").arg(alternateBaseColor, tr("Author: "), article->author()); html += "
" "
"; if (Qt::mightBeRichText(article->description())) {