ZaStoGram_desktop/Telegram/SourceFiles/ui/new_badges.h

39 lines
908 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
#include "ui/text/custom_emoji_helper.h"
namespace style {
struct SettingsButton;
} // namespace style
namespace Ui {
class RpWidget;
[[nodiscard]] Text::PaletteDependentEmoji AttentionMarkEmoji();
} // namespace Ui
namespace Ui::NewBadge {
[[nodiscard]] not_null<Ui::RpWidget*> CreateNewBadge(
not_null<Ui::RpWidget*> parent,
rpl::producer<QString> text);
void AddToRight(not_null<Ui::RpWidget*> parent);
void AddAfterLabel(
not_null<Ui::RpWidget*> parent,
not_null<Ui::RpWidget*> label);
void AddAfterButtonText(
not_null<Ui::RpWidget*> button,
rpl::producer<QString> text,
const style::SettingsButton &st);
} // namespace Ui::NewBadge