Added fade effect to price categories in star gift box.

This commit is contained in:
23rd 2024-12-18 17:38:38 +03:00
parent f583879aee
commit f0b9bc10c2

View file

@ -795,6 +795,14 @@ struct GiftPriceTabs {
.availableWidth = button.text.maxWidth(),
});
}
{
const auto &icon = st::defaultEmojiSuggestions;
const auto w = icon.fadeRight.width();
const auto &c = st::boxDividerBg->c;
const auto r = QRect(0, 0, w, raw->height());
icon.fadeRight.fill(p, r.translated(raw->width() - w, 0), c);
icon.fadeLeft.fill(p, r, c);
}
}, raw->lifetime());
return {