mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use a separate title for star gift recipient box.
This commit is contained in:
parent
cf1d274b0d
commit
42dd08ace5
2 changed files with 5 additions and 2 deletions
|
@ -2999,6 +2999,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
"lng_gift_stars_incoming" = "Use Stars to unlock content and services on Telegram.";
|
"lng_gift_stars_incoming" = "Use Stars to unlock content and services on Telegram.";
|
||||||
"lng_gift_until" = "Until";
|
"lng_gift_until" = "Until";
|
||||||
|
|
||||||
|
"lng_gift_premium_or_stars" = "Gift Premium or Stars";
|
||||||
"lng_gift_premium_subtitle" = "Gift Premium";
|
"lng_gift_premium_subtitle" = "Gift Premium";
|
||||||
"lng_gift_premium_about" = "Give {name} access to exclusive features with Telegram Premium. {features}";
|
"lng_gift_premium_about" = "Give {name} access to exclusive features with Telegram Premium. {features}";
|
||||||
"lng_gift_premium_features" = "See Features >";
|
"lng_gift_premium_features" = "See Features >";
|
||||||
|
|
|
@ -258,7 +258,9 @@ PreviewWrap::PreviewWrap(
|
||||||
prepare(std::move(details));
|
prepare(std::move(details));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowSentToast(not_null<Window::SessionController*> window, GiftTypeStars gift) {
|
void ShowSentToast(
|
||||||
|
not_null<Window::SessionController*> window,
|
||||||
|
GiftTypeStars gift) {
|
||||||
const auto &st = st::historyPremiumToast;
|
const auto &st = st::historyPremiumToast;
|
||||||
const auto skip = st.padding.top();
|
const auto skip = st.padding.top();
|
||||||
const auto size = st.style.font->height * 2;
|
const auto size = st.style.font->height * 2;
|
||||||
|
@ -1285,7 +1287,7 @@ void ChooseStarGiftRecipient(
|
||||||
|
|
||||||
};
|
};
|
||||||
auto initBox = [=](not_null<PeerListBox*> peersBox) {
|
auto initBox = [=](not_null<PeerListBox*> peersBox) {
|
||||||
peersBox->setTitle(tr::lng_credits_gift_title());
|
peersBox->setTitle(tr::lng_gift_premium_or_stars());
|
||||||
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
|
peersBox->addButton(tr::lng_cancel(), [=] { peersBox->closeBox(); });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue