diff --git a/kdirshare/kded/kdirshareimpl.cpp b/kdirshare/kded/kdirshareimpl.cpp index 5dbfa9d7..0c3c3fe4 100644 --- a/kdirshare/kded/kdirshareimpl.cpp +++ b/kdirshare/kded/kdirshareimpl.cpp @@ -72,11 +72,13 @@ static QString getTitle(const QString &dirpath) // for reference: // https://www.w3schools.com/css/css_link.asp -static QByteArray styleSheetForPalette(const QPalette &palette) +static QByteArray sheetForContent() { QByteArray stylesheet; + const QPalette palette = KGlobalSettings::createApplicationPalette(); const QByteArray foregroundcolor = palette.color(QPalette::Active, QPalette::Foreground).name().toLatin1(); const QByteArray backgroundcolor = palette.color(QPalette::Active, QPalette::Background).name().toLatin1(); + stylesheet.append(" \n"); return stylesheet; } @@ -108,9 +111,7 @@ static QByteArray contentForError(const QString &path, const ushort status) QByteArray data; data.append("\n"); - data.append("
\n"); - data.append(" \n"); - data.append(" \n"); + data.append(sheetForContent()); data.append(" \n"); data.append("