ZaStoGram_desktop/Telegram/SourceFiles/ui/controls/feature_list.h
John Preston 35db328387 Restyle the wallet recovery and How It Works boxes
Task: 2026/08/17/restyle-wallet-recovery-and-how-it-works-boxes
2026-10-08 22:23:53 +04:00

41 lines
968 B
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
namespace style {
struct FlatLabel;
} // namespace style
namespace st {
extern const style::FlatLabel &infoStarsFeatureTitle;
extern const style::FlatLabel &infoStarsFeatureAbout;
} // namespace st
namespace Ui::Text {
struct MarkedContext;
} // namespace Ui::Text
namespace Ui {
class RpWidget;
struct FeatureListEntry {
const style::icon &icon;
QString title;
TextWithEntities about;
bool similarLines = false;
};
[[nodiscard]] object_ptr<RpWidget> MakeFeatureListEntry(
QWidget *parent,
FeatureListEntry feature,
const Text::MarkedContext &context = {},
const style::FlatLabel &stTitle = st::infoStarsFeatureTitle,
const style::FlatLabel &stAbout = st::infoStarsFeatureAbout);
} // namespace Ui