mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix message ViewButton rendering in 1x.
This commit is contained in:
parent
65d96c0364
commit
60444b1fee
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,9 @@ void ViewButton::draw(
|
|||
pen.setWidth(st::lineWidth);
|
||||
p.setPen(pen);
|
||||
p.setBrush(Qt::NoBrush);
|
||||
p.drawRoundedRect(r, st::roundRadiusLarge, st::roundRadiusLarge);
|
||||
const auto half = st::lineWidth / 2.;
|
||||
const auto rf = QRectF(r).marginsRemoved({ half, half, half, half });
|
||||
p.drawRoundedRect(rf, st::roundRadiusLarge, st::roundRadiusLarge);
|
||||
|
||||
_inner->text.drawElided(
|
||||
p,
|
||||
|
|
Loading…
Add table
Reference in a new issue