Fix rounding mask in selected shared contacts
This commit is contained in:
parent
0eeeb18ecd
commit
3cd2e31a8a
1 changed files with 22 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue