1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 19:12:11 +01:00

[Themes] Fix loading linux.css and mac.css on Mac/Linux

This commit is contained in:
David Rosca 2014-04-20 12:28:33 +02:00
parent 668c8b024a
commit 0a8337758e

View File

@ -924,9 +924,9 @@ void MainApplication::loadTheme(const QString &name)
QString qss = QzTools::readAllFileContents(activeThemePath + QLatin1String("/main.css")); QString qss = QzTools::readAllFileContents(activeThemePath + QLatin1String("/main.css"));
#if defined(Q_OS_MAC) #if defined(Q_OS_MAC)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/linux.css")));
#elif defined(Q_OS_UNIX)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/mac.css"))); qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/mac.css")));
#elif defined(Q_OS_UNIX)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/linux.css")));
#elif defined(Q_OS_WIN) || defined(Q_OS_OS2) #elif defined(Q_OS_WIN) || defined(Q_OS_OS2)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/windows.css"))); qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/windows.css")));
#endif #endif