2023-07-17 15:59:27 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
2023-07-18 08:15:19 +00:00
|
|
|
inline constexpr auto kOutlineSegmentsMax = 50;
|
|
|
|
|
2023-07-17 15:59:27 +00:00
|
|
|
struct OutlineSegment {
|
|
|
|
QBrush brush;
|
|
|
|
float64 width = 0.;
|
|
|
|
};
|
|
|
|
|
|
|
|
void PaintOutlineSegments(
|
|
|
|
QPainter &p,
|
|
|
|
QRectF ellipse,
|
|
|
|
const std::vector<OutlineSegment> &segments,
|
|
|
|
float64 fromFullProgress = 1.);
|
|
|
|
|
2023-07-17 16:47:44 +00:00
|
|
|
[[nodiscard]] QLinearGradient UnreadStoryOutlineGradient(QRectF rect = {});
|
|
|
|
|
2023-07-17 15:59:27 +00:00
|
|
|
} // namespace Ui
|