mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
Label texts are supposed to be white.
This commit is contained in:
parent
ea9b336a6b
commit
938dca303c
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ ShadowBackgroundLabel::ShadowBackgroundLabel(QWidget *parent, const QString &tex
|
||||||
: QLabel(parent)
|
: QLabel(parent)
|
||||||
{
|
{
|
||||||
setAttribute(Qt::WA_TranslucentBackground); // Allows transparency
|
setAttribute(Qt::WA_TranslucentBackground); // Allows transparency
|
||||||
setText(text);
|
setText("<font color='white'>" + text + "</font>");
|
||||||
setAlignment(Qt::AlignCenter);
|
setAlignment(Qt::AlignCenter);
|
||||||
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ void CardAmountWidget::adjustFontSize(int scalePercentage)
|
||||||
|
|
||||||
void CardAmountWidget::updateCardCount()
|
void CardAmountWidget::updateCardCount()
|
||||||
{
|
{
|
||||||
cardCountInZone->setText(QString::number(countCardsInZone(zoneName)));
|
cardCountInZone->setText("<font color='white'>" + QString::number(countCardsInZone(zoneName)) + "</font>");
|
||||||
layout->invalidate();
|
layout->invalidate();
|
||||||
layout->activate();
|
layout->activate();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue