2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix rounding mask in selected shared contacts

This commit is contained in:
RadRussianRus
2020-07-22 17:01:02 +03:00
parent 0eeeb18ecd
commit 3cd2e31a8a

View File

@@ -182,7 +182,28 @@ void Contact::draw(Painter &p, const QRect &r, TextSelection selection, crl::tim
PainterHighQualityEnabler hq(p);
p.setBrush(p.textPalette().selectOverlay);
p.setPen(Qt::NoPen);
p.drawEllipse(rthumb);
switch (cUserpicCornersType()) {
case 0:
p.drawRoundedRect(
rthumb,
0, 0);
break;
case 1:
p.drawRoundedRect(
rthumb,
st::buttonRadius, st::buttonRadius);
break;
case 2:
p.drawRoundedRect(
rthumb,
st::dateRadius, st::dateRadius);
break;
default:
p.drawEllipse(rthumb);
}
}
bool over = ClickHandler::showAsActive(_linkl);