equal
deleted
inserted
replaced
151 lwThemes->setMinimumHeight(30); |
151 lwThemes->setMinimumHeight(30); |
152 lwThemes->setFixedWidth(120); |
152 lwThemes->setFixedWidth(120); |
153 for (int i = 0; i < Themes->size(); ++i) { |
153 for (int i = 0; i < Themes->size(); ++i) { |
154 QListWidgetItem * lwi = new QListWidgetItem(); |
154 QListWidgetItem * lwi = new QListWidgetItem(); |
155 lwi->setText(Themes->at(i)); |
155 lwi->setText(Themes->at(i)); |
156 lwi->setTextAlignment(Qt::AlignHCenter); |
156 lwi->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(Themes->at(i)))); |
|
157 //lwi->setTextAlignment(Qt::AlignHCenter); |
157 lwThemes->addItem(lwi); |
158 lwThemes->addItem(lwi); |
158 } |
159 } |
159 connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int))); |
160 connect(lwThemes, SIGNAL(currentRowChanged(int)), this, SLOT(themeSelected(int))); |
160 |
161 |
161 // override default style to tighten up theme scroller |
162 // override default style to tighten up theme scroller |
165 "border-width: 0px;" |
166 "border-width: 0px;" |
166 "border-radius: 0px;" |
167 "border-radius: 0px;" |
167 "border-color: transparent;" |
168 "border-color: transparent;" |
168 "background-color: #0d0544;" |
169 "background-color: #0d0544;" |
169 "color: #ffcc00;" |
170 "color: #ffcc00;" |
170 "font: bold 14px;" |
171 "font: bold 13px;" |
171 "}" |
172 "}" |
172 ) |
173 ) |
173 ); |
174 ); |
174 |
175 |
175 gbTLayout->addWidget(lwThemes); |
176 gbTLayout->addWidget(lwThemes); |