AyuGramDesktop/Telegram/SourceFiles/ui/new_badges.h
2024-12-04 13:51:20 +04:00

25 lines
613 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 Ui {
class RpWidget;
} // 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);
} // namespace Ui::NewBadge