mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Fit amount of available colors in box for share of QR code to 8.
This commit is contained in:
parent
2c8c92c2a4
commit
2383bf2c71
1 changed files with 7 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue