From 96a8020f08d30fde0e1fbb564d74dbc69519a1be Mon Sep 17 00:00:00 2001 From: niu tech Date: Fri, 6 Jan 2012 14:17:46 +0100 Subject: [PATCH] Added reading mac.css theme file on Mac OS X --- src/app/mainapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index a382bef28..fd34ce59f 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -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");