2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Moved constants of arc angles to td_ui.

This commit is contained in:
23rd
2023-01-11 07:56:01 +03:00
parent cdfdccbb66
commit 58ed30d30e
17 changed files with 38 additions and 29 deletions

View File

@@ -91,8 +91,6 @@ constexpr auto kNoneLayer = 0;
style::al_center);
constexpr auto kPenWidth = 1.5;
constexpr auto kAngleStart = 90 * 16;
constexpr auto kAngleSpan = 180 * 16;
const auto penWidth = style::ConvertScaleExact(kPenWidth);
auto pen = QPen(st::premiumButtonFg);
@@ -102,7 +100,7 @@ constexpr auto kNoneLayer = 0;
q.setPen(pen);
q.setBrush(Qt::NoBrush);
q.drawArc(innerRect, kAngleStart, kAngleSpan);
q.drawArc(innerRect, arc::kQuarterLength, arc::kHalfLength);
q.setClipRect(innerRect
- QMargins(innerRect.width() / 2, 0, -penWidth, -penWidth));