Show TON icon in resale gifts.

This commit is contained in:
John Preston
2025-07-29 18:15:34 +04:00
parent aa499eab61
commit 23c0fcada6
11 changed files with 100 additions and 18 deletions
@@ -908,6 +908,7 @@ rpl::producer<CreditsAmount> AddCurrencyAction(
const auto name = Ui::CreateChild<Ui::FlatLabel>(button, st.rightLabel);
const auto icon = Ui::Text::SingleCustomEmoji(
user->owner().customEmojiManager().registerInternalEmoji(
u"profile_ton_section_icon"_q,
Ui::Earn::IconCurrencyColored(
st.rightLabel.style.font,
st.rightLabel.textFg->c),