mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Fix recent commenters userpics border.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user