mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-09 14:52:39 +01:00
use skins color for hyperlinks in nonwebengine version
This commit is contained in:
parent
5e4b3cf211
commit
04a87c8a23
@ -158,7 +158,13 @@ QString MessageBrowser::prepareHtmlForMessage(const Message& message) {
|
||||
.replace(QL1C('\r'), QL1C('\n'))
|
||||
.remove(QL1C('\n'));
|
||||
|
||||
return html;
|
||||
return QSL("<html>"
|
||||
"<head><style>"
|
||||
"a { color: %2; }"
|
||||
"</style></head>"
|
||||
"<body>%1</body>"
|
||||
"</html>").arg(html,
|
||||
qApp->skins()->currentSkin().m_colorPalette[Skin::PaletteColors::Highlight].name());
|
||||
}
|
||||
|
||||
bool MessageBrowser::eventFilter(QObject* watched, QEvent* event) {
|
||||
@ -194,7 +200,9 @@ void MessageBrowser::reloadFontSettings() {
|
||||
void MessageBrowser::loadMessage(const Message& message, RootItem* root) {
|
||||
Q_UNUSED(root)
|
||||
|
||||
m_txtBrowser->setHtml(prepareHtmlForMessage(message));
|
||||
auto html = prepareHtmlForMessage(message);
|
||||
|
||||
m_txtBrowser->setHtml(html);
|
||||
m_txtBrowser->verticalScrollBar()->triggerAction(QScrollBar::SliderToMinimum);
|
||||
m_searchWidget->hide();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user