1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

MainApplication: Load private.css style from theme in private browsing

Closes #2575
This commit is contained in:
David Rosca 2018-01-28 09:55:56 +01:00
parent d20d491e52
commit 723aee6a33
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -1016,6 +1016,10 @@ void MainApplication::loadTheme(const QString &name)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/rtl.css")));
}
if (isPrivate()) {
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/private.css")));
}
qss.append(QzTools::readAllFileContents(DataPaths::currentProfilePath() + QL1S("/userChrome.css")));
QString relativePath = QDir::current().relativeFilePath(activeThemePath);