mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix filter type pic rounding
This commit is contained in:
@@ -336,7 +336,28 @@ void PaintFilterChatsTypeIcon(
|
|||||||
auto hq = PainterHighQualityEnabler(p);
|
auto hq = PainterHighQualityEnabler(p);
|
||||||
p.setBrush(color->b);
|
p.setBrush(color->b);
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
p.drawEllipse(rect);
|
switch (cUserpicCornersType()) {
|
||||||
|
case 0:
|
||||||
|
p.drawRoundedRect(
|
||||||
|
rect,
|
||||||
|
0, 0);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
p.drawRoundedRect(
|
||||||
|
rect,
|
||||||
|
st::buttonRadius, st::buttonRadius);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
p.drawRoundedRect(
|
||||||
|
rect,
|
||||||
|
st::dateRadius, st::dateRadius);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
p.drawEllipse(rect);
|
||||||
|
}
|
||||||
icon.paintInCenter(p, rect);
|
icon.paintInCenter(p, rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user