2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add premium promo section about wallpapers.

This commit is contained in:
John Preston
2023-11-28 21:51:53 +04:00
parent 8c3fa14a75
commit 28d9330969
9 changed files with 30 additions and 2 deletions

View File

@@ -93,6 +93,8 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
[[nodiscard]] rpl::producer<QString> SectionTitle(PremiumPreview section) {
switch (section) {
case PremiumPreview::Wallpapers:
return tr::lng_premium_summary_subtitle_wallpapers();
case PremiumPreview::Stories:
return tr::lng_premium_summary_subtitle_stories();
case PremiumPreview::DoubleLimits:
@@ -127,6 +129,8 @@ void PreloadSticker(const std::shared_ptr<Data::DocumentMedia> &media) {
[[nodiscard]] rpl::producer<QString> SectionAbout(PremiumPreview section) {
switch (section) {
case PremiumPreview::Wallpapers:
return tr::lng_premium_summary_about_wallpapers();
case PremiumPreview::Stories:
return tr::lng_premium_summary_about_stories();
case PremiumPreview::DoubleLimits:
@@ -471,6 +475,7 @@ struct VideoPreviewDocument {
case PremiumPreview::ProfileBadge: return "profile_badge";
case PremiumPreview::AnimatedUserpics: return "animated_userpics";
case PremiumPreview::RealTimeTranslation: return "translations";
case PremiumPreview::Wallpapers: return "wallpapers";
}
return "";
}();