From 723aee6a33fc4debc3cc5901de0ff993380c8f6b Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 28 Jan 2018 09:55:56 +0100 Subject: [PATCH] MainApplication: Load private.css style from theme in private browsing Closes #2575 --- src/lib/app/mainapplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index 78f80c5eb..d244301b9 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -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);