mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix recent commenters userpics border.
This commit is contained in:
parent
4e8a1f8d29
commit
3aa1b1e9ae
1 changed files with 2 additions and 2 deletions
|
@ -752,8 +752,6 @@ void Message::paintCommentsButton(
|
||||||
auto hq = PainterHighQualityEnabler(q);
|
auto hq = PainterHighQualityEnabler(q);
|
||||||
auto pen = QPen(Qt::transparent);
|
auto pen = QPen(Qt::transparent);
|
||||||
pen.setWidth(st::historyCommentsUserpicStroke);
|
pen.setWidth(st::historyCommentsUserpicStroke);
|
||||||
q.setBrush(Qt::NoBrush);
|
|
||||||
q.setPen(pen);
|
|
||||||
auto x = (count - 1) * (single - shift);
|
auto x = (count - 1) * (single - shift);
|
||||||
for (auto i = count; i != 0;) {
|
for (auto i = count; i != 0;) {
|
||||||
auto &entry = list[--i];
|
auto &entry = list[--i];
|
||||||
|
@ -761,6 +759,8 @@ void Message::paintCommentsButton(
|
||||||
entry.peer->paintUserpic(q, entry.view, x, 0, single);
|
entry.peer->paintUserpic(q, entry.view, x, 0, single);
|
||||||
entry.uniqueKey = entry.peer->userpicUniqueKey(entry.view);
|
entry.uniqueKey = entry.peer->userpicUniqueKey(entry.view);
|
||||||
q.setCompositionMode(QPainter::CompositionMode_Source);
|
q.setCompositionMode(QPainter::CompositionMode_Source);
|
||||||
|
q.setBrush(Qt::NoBrush);
|
||||||
|
q.setPen(pen);
|
||||||
q.drawEllipse(x, 0, single, single);
|
q.drawEllipse(x, 0, single, single);
|
||||||
x -= single - shift;
|
x -= single - shift;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue