From 938dca303cfa9c1fc4f546eb11e9de27261a8971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Mon, 16 Dec 2024 01:14:14 +0100 Subject: [PATCH] Label texts are supposed to be white. --- .../ui/widgets/general/display/shadow_background_label.cpp | 2 +- .../client/ui/widgets/printing_selector/card_amount_widget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/general/display/shadow_background_label.cpp b/cockatrice/src/client/ui/widgets/general/display/shadow_background_label.cpp index 63762bd02..1d53bb05e 100644 --- a/cockatrice/src/client/ui/widgets/general/display/shadow_background_label.cpp +++ b/cockatrice/src/client/ui/widgets/general/display/shadow_background_label.cpp @@ -6,7 +6,7 @@ ShadowBackgroundLabel::ShadowBackgroundLabel(QWidget *parent, const QString &tex : QLabel(parent) { setAttribute(Qt::WA_TranslucentBackground); // Allows transparency - setText(text); + setText("" + text + ""); setAlignment(Qt::AlignCenter); setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); } diff --git a/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp b/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp index 53304fb82..f4a439b57 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/card_amount_widget.cpp @@ -100,7 +100,7 @@ void CardAmountWidget::adjustFontSize(int scalePercentage) void CardAmountWidget::updateCardCount() { - cardCountInZone->setText(QString::number(countCardsInZone(zoneName))); + cardCountInZone->setText("" + QString::number(countCardsInZone(zoneName)) + ""); layout->invalidate(); layout->activate(); }