Skip to content

Commit f698e96

Browse files
committed
Use black font for trophy viewer with light theme
1 parent 500d13e commit f698e96

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/TrophyManager.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,21 @@ void TrophyViewer::SetTableItem(QTableWidget* parent, int row, int column, QStri
237237
QLabel* label = new QLabel(str);
238238
QTableWidgetItem* item = new QTableWidgetItem();
239239
label->setWordWrap(true);
240-
label->setStyleSheet("color: white; font-size: 15px; font-weight: bold;");
240+
241+
if (Config::theme == "Dark") {
242+
label->setStyleSheet("color: white; font-size: 15px; font-weight: bold;");
243+
} else {
244+
label->setStyleSheet("color: black; font-size: 15px; font-weight: bold;");
245+
}
241246

242247
// Create shadow effect
243248
QGraphicsDropShadowEffect* shadowEffect = new QGraphicsDropShadowEffect();
244249
shadowEffect->setBlurRadius(5); // Set the blur radius of the shadow
245250
shadowEffect->setColor(QColor(0, 0, 0, 160)); // Set the color and opacity of the shadow
246251
shadowEffect->setOffset(2, 2); // Set the offset of the shadow
247252

248-
label->setGraphicsEffect(shadowEffect); // Apply shadow effect to the QLabel
253+
if (Config::theme == "Dark")
254+
label->setGraphicsEffect(shadowEffect); // Apply shadow effect to the QLabel
249255
if (column == 4)
250256
label->setAlignment(Qt::AlignCenter);
251257

0 commit comments

Comments
 (0)