From d1d1aa3d2152a685c0c96bec465a92f0b78ea714 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 10 Sep 2024 13:49:02 +0300 Subject: [PATCH] Moved premium gradient in box for share of QR code to first place. --- Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp index 96c1b47ca..d08093de5 100644 --- a/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp @@ -487,12 +487,14 @@ void FillPeerQrBox( }) | ranges::views::filter([](const Colors &colors) { return !colors.empty(); }) | ranges::to_vector; - colorsCollection.push_back(Colors{ - st::premiumButtonBg1->c, - st::premiumButtonBg1->c, - st::premiumButtonBg2->c, - st::premiumButtonBg3->c, - }); + colorsCollection.insert( + colorsCollection.begin(), + Colors{ + st::premiumButtonBg1->c, + st::premiumButtonBg1->c, + st::premiumButtonBg2->c, + st::premiumButtonBg3->c, + }); // colorsCollection.push_back(Colors{ // st::creditsBg1->c, // st::creditsBg2->c,