diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbapps/hbthemechanger/resourceview.cpp --- a/src/hbapps/hbthemechanger/resourceview.cpp Mon Oct 04 17:49:30 2010 +0300 +++ b/src/hbapps/hbthemechanger/resourceview.cpp Mon Oct 18 18:23:13 2010 +0300 @@ -87,6 +87,7 @@ mResourceItem->setAlignment(Qt::AlignCenter); mResourceItem->setFontSpec(HbFontSpec(HbFontSpec::Secondary)); mResourcesList = new HbTumbleView(mThemedIcons, this); + mResourcesList->setLoopingEnabled(true); layout->addItem(mResourceItem); layout->addItem(mResourcesList); @@ -99,7 +100,7 @@ connect(mSearchPanel, SIGNAL(criteriaChanged(const QString &)), this, SLOT(criteriaChanged(const QString &))); connect(mResourcesList, SIGNAL(itemSelected(int)), this, SLOT(iconItemSelected(int))); - mMode = iconMode; + toggleMode(iconMode); mMainWindow->addView(this); } @@ -215,19 +216,22 @@ mThemedColors.clear(); QString basetheme = HbThemeUtils::getThemeSetting(HbThemeUtils::BaseThemeSetting); basetheme = basetheme.replace("/icons/", "/style/"); - QFile file(basetheme + "/variables/color/hbcolorgroup.css"); - - if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { - QTextStream in(&file); + QDir colorsDir(basetheme + "/variables/color"); + QFileInfoList files = colorsDir.entryInfoList(QDir::Files); + for (int i=0;i