diff --git a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp index 01ffb1aff..1e92b697b 100644 --- a/Telegram/SourceFiles/settings/settings_credits_graphics.cpp +++ b/Telegram/SourceFiles/settings/settings_credits_graphics.cpp @@ -782,10 +782,13 @@ void ReceiptCreditsBox( std::unique_ptr lottie; rpl::lifetime downloadLifetime; }; - Ui::AddSkip(content, st::creditsHistoryEntryGiftStickerSpace - - (isStarGift ? st::creditsHistoryEntryGiftStickerSkip : 0)); + Ui::AddSkip(content, isStarGift + ? st::creditsHistoryEntryStarGiftSpace + : st::creditsHistoryEntryGiftStickerSpace); const auto icon = Ui::CreateChild(content); - icon->resize(Size(st::creditsHistoryEntryGiftStickerSize)); + icon->resize(Size(isStarGift + ? st::creditsHistoryEntryStarGiftSize + : st::creditsHistoryEntryGiftStickerSize)); const auto state = icon->lifetime().make_state(); auto &packs = session->giftBoxStickersPacks(); const auto document = starGiftSticker @@ -834,9 +837,9 @@ void ReceiptCreditsBox( }, icon->lifetime()); content->sizeValue( ) | rpl::start_with_next([=](const QSize &size) { - icon->move( - (size.width() - icon->width()) / 2, - isStarGift ? 0 : st::creditsHistoryEntryGiftStickerSkip); + icon->move((size.width() - icon->width()) / 2, isStarGift + ? st::creditsHistoryEntryStarGiftSkip + : st::creditsHistoryEntryGiftStickerSkip); }, icon->lifetime()); } else { const auto widget = content->add( diff --git a/Telegram/SourceFiles/ui/effects/credits.style b/Telegram/SourceFiles/ui/effects/credits.style index 52453cfbe..b0861a8dc 100644 --- a/Telegram/SourceFiles/ui/effects/credits.style +++ b/Telegram/SourceFiles/ui/effects/credits.style @@ -54,6 +54,10 @@ creditsHistoryEntryGiftStickerSkip: -20px; creditsHistoryEntryGiftStickerSize: 150px; creditsHistoryEntryGiftStickerSpace: 105px; +creditsHistoryEntryStarGiftSkip: 10px; +creditsHistoryEntryStarGiftSize: 120px; +creditsHistoryEntryStarGiftSpace: 125px; + creditsGiftBox: Box(defaultBox) { shadowIgnoreTopSkip: true; }