From d106da8324a9d2910970c5bbada475880ec37be8 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Sun, 25 Jan 2026 16:25:44 +0100 Subject: [PATCH] fix outline on the text --- .../src/interface/widgets/general/home_styled_button.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/interface/widgets/general/home_styled_button.cpp b/cockatrice/src/interface/widgets/general/home_styled_button.cpp index 6023b7fc7..002cb189c 100644 --- a/cockatrice/src/interface/widgets/general/home_styled_button.cpp +++ b/cockatrice/src/interface/widgets/general/home_styled_button.cpp @@ -41,8 +41,8 @@ QString HomeStyledButton::generateButtonStylesheet(const QPair & return QString(R"( QPushButton { font-size: 34px; - font-weight: 1000; font-family: sans-serif, "Segoe UI", "Helvetica Neue"; + font-weight: bold; padding: 30px; color: white; border: 2px solid %1; @@ -97,7 +97,7 @@ void HomeStyledButton::paintEvent(QPaintEvent *event) QPainterPath path; path.addText(center, font(), text()); - painter.setPen(QPen(Qt::black, 2.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); - painter.setBrush(Qt::white); - painter.drawPath(path); + QPen pen(Qt::black, 4.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); + painter.strokePath(path, pen); + painter.fillPath(path, Qt::white); }