2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Moved creation of divider with text and lottie to single place.

This commit is contained in:
23rd
2023-01-07 08:15:27 +03:00
committed by John Preston
parent 991fafb30e
commit c99ac0a264
3 changed files with 52 additions and 44 deletions

View File

@@ -207,6 +207,11 @@ not_null<Ui::FlatLabel*> AddSubsectionTitle(
rpl::producer<QString> text,
style::margins addPadding = {},
const style::FlatLabel *st = nullptr);
void AddDividerTextWithLottie(
not_null<Ui::VerticalLayout*> parent,
rpl::producer<> showFinished,
rpl::producer<TextWithEntities> text,
const QString &lottie);
struct LottieIcon {
object_ptr<Ui::RpWidget> widget;