mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-21 06:42:37 +00:00
68 lines
1.5 KiB
C++
68 lines
1.5 KiB
C++
/*
|
|
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
|
|
|
|
#include "ui/effects/round_checkbox.h"
|
|
|
|
namespace tr {
|
|
template <typename ...>
|
|
struct phrase;
|
|
} // namespace tr
|
|
|
|
enum lngtag_count : int;
|
|
|
|
namespace style {
|
|
struct RoundImageCheckbox;
|
|
struct TextStyle;
|
|
} // namespace style
|
|
|
|
namespace Ui {
|
|
|
|
class RadiobuttonGroup;
|
|
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);
|
|
|
|
void AddLimitRow(
|
|
not_null<Ui::VerticalLayout*> parent,
|
|
int max,
|
|
std::optional<tr::phrase<lngtag_count>> phrase,
|
|
int min = 0);
|
|
|
|
struct AccountsRowArgs final {
|
|
std::shared_ptr<Ui::RadiobuttonGroup> group;
|
|
const style::RoundImageCheckbox &st;
|
|
const style::TextStyle &stName;
|
|
const style::color &stNameFg;
|
|
struct Entry final {
|
|
QString name;
|
|
Ui::RoundImageCheckbox::PaintRoundImage paintRoundImage;
|
|
};
|
|
std::vector<Entry> entries;
|
|
};
|
|
|
|
void AddAccountsRow(
|
|
not_null<Ui::VerticalLayout*> parent,
|
|
AccountsRowArgs &&args);
|
|
|
|
[[nodiscard]] QGradientStops LimitGradientStops();
|
|
[[nodiscard]] QGradientStops ButtonGradientStops();
|
|
[[nodiscard]] QGradientStops LockGradientStops();
|
|
|
|
} // namespace Premium
|
|
} // namespace Ui
|