mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
fix outline on the text
This commit is contained in:
parent
67b3ea77ba
commit
d106da8324
1 changed files with 4 additions and 4 deletions
|
|
@ -41,8 +41,8 @@ QString HomeStyledButton::generateButtonStylesheet(const QPair<QColor, QColor> &
|
||||||
return QString(R"(
|
return QString(R"(
|
||||||
QPushButton {
|
QPushButton {
|
||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
font-weight: 1000;
|
|
||||||
font-family: sans-serif, "Segoe UI", "Helvetica Neue";
|
font-family: sans-serif, "Segoe UI", "Helvetica Neue";
|
||||||
|
font-weight: bold;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
color: white;
|
color: white;
|
||||||
border: 2px solid %1;
|
border: 2px solid %1;
|
||||||
|
|
@ -97,7 +97,7 @@ void HomeStyledButton::paintEvent(QPaintEvent *event)
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
path.addText(center, font(), text());
|
path.addText(center, font(), text());
|
||||||
|
|
||||||
painter.setPen(QPen(Qt::black, 2.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
QPen pen(Qt::black, 4.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
|
||||||
painter.setBrush(Qt::white);
|
painter.strokePath(path, pen);
|
||||||
painter.drawPath(path);
|
painter.fillPath(path, Qt::white);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue