mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Fixed drawing online badge.
Regression was introduced in 66cd27a23e.
This commit is contained in:
parent
b0fece2fd0
commit
30077133d4
1 changed files with 5 additions and 5 deletions
|
@ -507,7 +507,6 @@ void Row::PaintCornerBadgeFrame(
|
|||
? st::dialogsOnlineBadgeSkip
|
||||
: st::dialogsCallBadgeSkip;
|
||||
const auto shrink = (size / 2) * (1. - topLayerProgress);
|
||||
const auto doubleShrink = shrink * 2;
|
||||
|
||||
auto pen = QPen(Qt::transparent);
|
||||
pen.setWidthF(stroke * topLayerProgress);
|
||||
|
@ -516,10 +515,11 @@ void Row::PaintCornerBadgeFrame(
|
|||
? st::dialogsOnlineBadgeFgActive
|
||||
: st::dialogsOnlineBadgeFg);
|
||||
q.drawEllipse(QRectF(
|
||||
photoSize - skip.x() - size - shrink,
|
||||
photoSize - skip.y() - size - shrink,
|
||||
size + doubleShrink,
|
||||
size + doubleShrink));
|
||||
photoSize - skip.x() - size,
|
||||
photoSize - skip.y() - size,
|
||||
size,
|
||||
size
|
||||
).marginsRemoved({ shrink, shrink, shrink, shrink }));
|
||||
}
|
||||
|
||||
void Row::paintUserpic(
|
||||
|
|
Loading…
Add table
Reference in a new issue