=== modified file 'mixxx/src/skin/legacyskinparser.cpp' --- mixxx/src/skin/legacyskinparser.cpp 2013-02-27 02:06:14 +0000 +++ mixxx/src/skin/legacyskinparser.cpp 2013-03-24 15:57:05 +0000 @@ -246,6 +246,7 @@ * with their own means they're easy to move to boot -- bkgood */ m_pParent = new QWidget; // this'll get deleted with pParent + m_skinPath = skinPath; QDomElement skinDocument = openSkin(skinPath); if (skinDocument.isNull()) { @@ -451,6 +452,7 @@ QWidget* pOldParent = m_pParent; m_pParent = pGroup; + bool parseLibrary = false; if (!childrenNode.isNull()) { // Descend children QDomNodeList children = childrenNode.childNodes(); @@ -460,8 +462,17 @@ QWidget* pChild = parseNode(node.toElement(), pGroup); pGroup->addWidget(pChild); } + if (node.nodeName() == "Splitter") { + parseLibrary = true; + qDebug() << "kain88 found a library"; + } } } + if (parseLibrary && getSchemeList(m_skinPath).size()!=0) { + qDebug() << "kain88 see if we have schemes"; + qDebug() << getSchemeList(m_skinPath); + pGroup->setStyleSheet(getLibraryStyle(node)); + } m_pParent = pOldParent; return pGroup; } @@ -948,6 +959,7 @@ // This must come after the bindWidget or we will not style any of the // LibraryView's because they have not been added yet. + qDebug() << "kain88 set Library"; setupWidget(node, pLibraryWidget); return pLibraryWidget; === modified file 'mixxx/src/skin/legacyskinparser.h' --- mixxx/src/skin/legacyskinparser.h 2012-11-29 01:19:52 +0000 +++ mixxx/src/skin/legacyskinparser.h 2013-03-24 15:51:59 +0000 @@ -42,7 +42,6 @@ QWidget* parseNode(QDomElement node, QWidget* pGrandparent); // Support for various legacy behavior - void parseColorSchemes(QDomElement node); bool compareConfigKeys(QDomNode node, QString key); // Parsers for each node @@ -93,6 +92,9 @@ Tooltips m_tooltips; static QList s_channelStrs; static QMutex s_safeStringMutex; + + private: + QString m_skinPath; };