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

Added reading mac.css theme file on Mac OS X

This commit is contained in:
niu tech 2012-01-06 14:17:46 +01:00
parent d3ea77f8f1
commit 96a8020f08

View File

@ -252,6 +252,14 @@ void MainApplication::loadSettings()
cssFile.close();
}
#endif
#ifdef Q_WS_MAC
if (QFile(m_activeThemePath + "mac.css").exists()) {
cssFile.setFileName(m_activeThemePath + "mac.css");
cssFile.open(QFile::ReadOnly);
css.append(cssFile.readAll());
cssFile.close();
}
#endif
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
if (QFile(m_activeThemePath + "windows.css").exists()) {
cssFile.setFileName(m_activeThemePath + "windows.css");