mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Slightly improved TTL badge in dialogs list.
This commit is contained in:
parent
3f829ef3b9
commit
0e3eddcb77
1 changed files with 4 additions and 2 deletions
|
@ -94,16 +94,18 @@ constexpr auto kNoneLayer = 0;
|
|||
constexpr auto kAngleStart = 90 * 16;
|
||||
constexpr auto kAngleSpan = 180 * 16;
|
||||
|
||||
const auto penWidth = style::ConvertScaleExact(kPenWidth);
|
||||
auto pen = QPen(st::premiumButtonFg);
|
||||
pen.setJoinStyle(Qt::RoundJoin);
|
||||
pen.setCapStyle(Qt::RoundCap);
|
||||
pen.setWidthF(style::ConvertScaleExact(kPenWidth));
|
||||
pen.setWidthF(penWidth);
|
||||
|
||||
q.setPen(pen);
|
||||
q.setBrush(Qt::NoBrush);
|
||||
q.drawArc(innerRect, kAngleStart, kAngleSpan);
|
||||
|
||||
q.setClipRect(innerRect - QMargins(innerRect.width() / 2, 0, 0, 0));
|
||||
q.setClipRect(innerRect
|
||||
- QMargins(innerRect.width() / 2, 0, -penWidth, -penWidth));
|
||||
pen.setStyle(Qt::DotLine);
|
||||
q.setPen(pen);
|
||||
q.drawEllipse(innerRect);
|
||||
|
|
Loading…
Add table
Reference in a new issue