new_badges.h 613 B

12345678910111213141516171819202122232425
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Ui {
  9. class RpWidget;
  10. } // namespace Ui
  11. namespace Ui::NewBadge {
  12. [[nodiscard]] not_null<Ui::RpWidget*> CreateNewBadge(
  13. not_null<Ui::RpWidget*> parent,
  14. rpl::producer<QString> text);
  15. void AddToRight(not_null<Ui::RpWidget*> parent);
  16. void AddAfterLabel(
  17. not_null<Ui::RpWidget*> parent,
  18. not_null<Ui::RpWidget*> label);
  19. } // namespace Ui::NewBadge