From 939882ef68177a90b5d74e3ebf024753625649fb Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 1 Dec 2025 13:12:28 +0400 Subject: [PATCH] Show profile design gift wear promo. --- Telegram/Resources/langs/lang.strings | 3 +++ Telegram/SourceFiles/boxes/star_gift_box.cpp | 10 ++++++---- .../SourceFiles/settings/settings_credits_graphics.cpp | 1 + .../SourceFiles/settings/settings_credits_graphics.h | 1 + Telegram/SourceFiles/ui/effects/credits.style | 1 + Telegram/SourceFiles/ui/menu_icons.style | 1 + 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 510c8daf6c..f6bc102c25 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -4000,6 +4000,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_gift_wear_badge_title" = "Radiant Badge"; "lng_gift_wear_badge_about" = "The glittering icon of this item will be displayed next to your name."; "lng_gift_wear_badge_about_channel" = "The glittering icon of this item will be displayed next to channel's name."; +"lng_gift_wear_design_title" = "Unique Profile Design"; +"lng_gift_wear_design_about" = "Your profile page will get the color and the symbol of this item."; +"lng_gift_wear_design_about_channel" = "Your channel page will get the color and the symbol of this item."; "lng_gift_wear_proof_title" = "Proof of Ownership"; "lng_gift_wear_proof_about" = "Clicking the icon of this item next to your name will show its info and owner."; "lng_gift_wear_proof_about_channel" = "Clicking the icon of this item next to channel's name will show its info and owner."; diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp index 8a370afb95..882583150e 100644 --- a/Telegram/SourceFiles/boxes/star_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp @@ -3201,10 +3201,12 @@ void ShowUniqueGiftWearBox( ? tr::lng_gift_wear_badge_about_channel() : tr::lng_gift_wear_badge_about()), st.radiantIcon ? st.radiantIcon : &st::menuIconUnique); - //infoRow( - // tr::lng_gift_wear_design_title(), - // tr::lng_gift_wear_design_about(), - // &st::menuIconUniqueProfile); + infoRow( + tr::lng_gift_wear_design_title(), + (channel + ? tr::lng_gift_wear_design_about_channel() + : tr::lng_gift_wear_design_about()), + st.profileIcon ? st.profileIcon : &st::menuIconUniqueProfile); infoRow( tr::lng_gift_wear_proof_title(), (channel diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index a0ad121040..6ce1cfdf36 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -1187,6 +1187,7 @@ GiftWearBoxStyleOverride DarkGiftWearBoxStyle() { .title = &st::darkUpgradeGiftTitle, .subtitle = &st::darkUpgradeGiftSubtitle, .radiantIcon = &st::darkUpgradeGiftRadiant, + .profileIcon = &st::darkUpgradeGiftProfile, .proofIcon = &st::darkUpgradeGiftProof, .infoTitle = &st::darkUpgradeGiftInfoTitle, .infoAbout = &st::darkUpgradeGiftInfoAbout, diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.h b/Telegram/SourceFiles/settings/settings_credits_graphics.h index 0248a676e4..5e8ea6d62f 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.h +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.h @@ -103,6 +103,7 @@ struct GiftWearBoxStyleOverride { const style::FlatLabel *title = nullptr; const style::FlatLabel *subtitle = nullptr; const style::icon *radiantIcon = nullptr; + const style::icon *profileIcon = nullptr; const style::icon *proofIcon = nullptr; const style::FlatLabel *infoTitle = nullptr; const style::FlatLabel *infoAbout = nullptr; diff --git a/Telegram/SourceFiles/ui/effects/credits.style b/Telegram/SourceFiles/ui/effects/credits.style index c288edba75..a7deb58a75 100644 --- a/Telegram/SourceFiles/ui/effects/credits.style +++ b/Telegram/SourceFiles/ui/effects/credits.style @@ -337,6 +337,7 @@ darkUpgradeGiftBox: Box(upgradeGiftBox) { titleAdditionalFg: groupCallMemberNotJoinedStatus; } darkUpgradeGiftRadiant: icon{{ "menu/unique", groupCallMembersFg }}; +darkUpgradeGiftProfile: icon{{ "menu/profile", groupCallMembersFg }}; darkUpgradeGiftProof: icon{{ "menu/factcheck", groupCallMembersFg }}; darkUpgradeGiftInfoTitle: FlatLabel(defaultFlatLabel) { textFg: groupCallMembersFg; diff --git a/Telegram/SourceFiles/ui/menu_icons.style b/Telegram/SourceFiles/ui/menu_icons.style index 6dd4cc3c8f..e286415c76 100644 --- a/Telegram/SourceFiles/ui/menu_icons.style +++ b/Telegram/SourceFiles/ui/menu_icons.style @@ -180,6 +180,7 @@ menuIconTransparent: icon {{ "menu/affiliate_transparent", menuIconColor }}; menuIconLike: icon {{ "menu/affiliate_simple", menuIconColor }}; menuIconTradable: icon {{ "menu/tradable", menuIconColor }}; menuIconUnique: icon {{ "menu/unique", menuIconColor }}; +menuIconUniqueProfile: icon {{ "settings/premium/features/feature_profile_cover", menuIconColor }}; menuIconNftWear: icon {{ "menu/nft_wear", menuIconColor }}; menuIconNftTakeOff: icon {{ "menu/nft_takeoff", menuIconColor }}; menuIconShortcut: icon {{ "menu/shortcut", menuIconColor }};