mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
}) | ranges::views::filter([](const Colors &colors) {
|
||||||
return !colors.empty();
|
return !colors.empty();
|
||||||
}) | ranges::to_vector;
|
}) | ranges::to_vector;
|
||||||
colorsCollection.insert(
|
Expects(!colorsCollection.empty());
|
||||||
colorsCollection.begin(),
|
colorsCollection[0] = Colors{
|
||||||
Colors{
|
st::premiumButtonBg1->c,
|
||||||
st::premiumButtonBg1->c,
|
st::premiumButtonBg1->c,
|
||||||
st::premiumButtonBg1->c,
|
st::premiumButtonBg2->c,
|
||||||
st::premiumButtonBg2->c,
|
st::premiumButtonBg3->c,
|
||||||
st::premiumButtonBg3->c,
|
};
|
||||||
});
|
|
||||||
// colorsCollection.push_back(Colors{
|
// colorsCollection.push_back(Colors{
|
||||||
// st::creditsBg1->c,
|
// st::creditsBg1->c,
|
||||||
// st::creditsBg2->c,
|
// st::creditsBg2->c,
|
||||||
|
|
Loading…
Add table
Reference in a new issue