2022-05-17 00:04:44 +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
|
|
|
|
|
2022-05-20 14:57:01 +00:00
|
|
|
#include <QtGui/QBrush>
|
|
|
|
|
2022-05-17 00:04:44 +00:00
|
|
|
namespace tr {
|
|
|
|
template <typename ...>
|
|
|
|
struct phrase;
|
|
|
|
} // namespace tr
|
|
|
|
|
|
|
|
enum lngtag_count : int;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
|
|
class VerticalLayout;
|
|
|
|
|
|
|
|
namespace Premium {
|
|
|
|
|
|
|
|
void AddBubbleRow(
|
|
|
|
not_null<Ui::VerticalLayout*> parent,
|
|
|
|
rpl::producer<> showFinishes,
|
|
|
|
int min,
|
|
|
|
int current,
|
|
|
|
int max,
|
|
|
|
std::optional<tr::phrase<lngtag_count>> phrase,
|
|
|
|
const style::icon *icon);
|
|
|
|
|
2022-05-24 04:20:22 +00:00
|
|
|
void AddLimitRow(
|
|
|
|
not_null<Ui::VerticalLayout*> parent,
|
|
|
|
int max,
|
|
|
|
std::optional<tr::phrase<lngtag_count>> phrase);
|
2022-05-18 04:28:35 +00:00
|
|
|
|
2022-05-20 14:57:01 +00:00
|
|
|
[[nodiscard]] QGradientStops LimitGradientStops();
|
|
|
|
[[nodiscard]] QGradientStops ButtonGradientStops();
|
|
|
|
[[nodiscard]] QGradientStops LockGradientStops();
|
|
|
|
|
2022-05-17 00:04:44 +00:00
|
|
|
} // namespace Premium
|
|
|
|
} // namespace Ui
|