# HG changeset patch # User smaxx # Date 1284491226 -7200 # Node ID d3d39bbb05f2a586693a5004d5a0e123bba3b57c # Parent aaac0e8641c6262b55ed2e191a0396832200dccf Frontend: * Added small icons to theme selection as well (open for discussion - like it or not?) diff -r aaac0e8641c6 -r d3d39bbb05f2 QTfrontend/mapContainer.cpp --- a/QTfrontend/mapContainer.cpp Tue Sep 14 19:06:59 2010 +0200 +++ b/QTfrontend/mapContainer.cpp Tue Sep 14 21:07:06 2010 +0200 @@ -153,7 +153,8 @@ for (int i = 0; i < Themes->size(); ++i) { QListWidgetItem * lwi = new QListWidgetItem(); lwi->setText(Themes->at(i)); - lwi->setTextAlignment(Qt::AlignHCenter); + lwi->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(Themes->at(i)))); + //lwi->setTextAlignment(Qt::AlignHCenter); lwThemes->addItem(lwi); } connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int))); @@ -167,7 +168,7 @@ "border-color: transparent;" "background-color: #0d0544;" "color: #ffcc00;" - "font: bold 14px;" + "font: bold 13px;" "}" ) );