Label texts are supposed to be white.

This commit is contained in:
Lukas Brübach 2024-12-16 01:14:14 +01:00 committed by ZeldaZach
parent ea9b336a6b
commit 938dca303c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ ShadowBackgroundLabel::ShadowBackgroundLabel(QWidget *parent, const QString &tex
: QLabel(parent)
{
setAttribute(Qt::WA_TranslucentBackground); // Allows transparency
setText(text);
setText("<font color='white'>" + text + "</font>");
setAlignment(Qt::AlignCenter);
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
}

View file

@ -100,7 +100,7 @@ void CardAmountWidget::adjustFontSize(int scalePercentage)
void CardAmountWidget::updateCardCount()
{
cardCountInZone->setText(QString::number(countCardsInZone(zoneName)));
cardCountInZone->setText("<font color='white'>" + QString::number(countCardsInZone(zoneName)) + "</font>");
layout->invalidate();
layout->activate();
}