Skip to content

Commit

Permalink
Fit amount of available colors in box for share of QR code to 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Sep 12, 2024
1 parent 2c8c92c commit 2383bf2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Telegram/SourceFiles/ui/boxes/peer_qr_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,13 @@ void FillPeerQrBox(
}) | ranges::views::filter([](const Colors &colors) {
return !colors.empty();
}) | ranges::to_vector;
colorsCollection.insert(
colorsCollection.begin(),
Colors{
st::premiumButtonBg1->c,
st::premiumButtonBg1->c,
st::premiumButtonBg2->c,
st::premiumButtonBg3->c,
});
Expects(!colorsCollection.empty());
colorsCollection[0] = Colors{
st::premiumButtonBg1->c,
st::premiumButtonBg1->c,
st::premiumButtonBg2->c,
st::premiumButtonBg3->c,
};
// colorsCollection.push_back(Colors{
// st::creditsBg1->c,
// st::creditsBg2->c,
Expand Down

0 comments on commit 2383bf2

Please sign in to comment.