mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -07:00
* mess with the font rendering of the home screen until it works * add more fonts * increase font weight * fix outline on the text
This commit is contained in:
parent
303bd8b607
commit
0b4e7be596
1 changed files with 3 additions and 3 deletions
|
|
@ -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