mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
MainApplication: Load private.css style from theme in private browsing
Closes #2575
This commit is contained in:
parent
d20d491e52
commit
723aee6a33
@ -1016,6 +1016,10 @@ void MainApplication::loadTheme(const QString &name)
|
|||||||
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/rtl.css")));
|
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")));
|
qss.append(QzTools::readAllFileContents(DataPaths::currentProfilePath() + QL1S("/userChrome.css")));
|
||||||
|
|
||||||
QString relativePath = QDir::current().relativeFilePath(activeThemePath);
|
QString relativePath = QDir::current().relativeFilePath(activeThemePath);
|
||||||
|
Loading…
Reference in New Issue
Block a user