Don't make multiboost badge gradient.

This commit is contained in:
John Preston 2023-11-10 18:01:41 +04:00
parent c530d7cc89
commit 468d4c5e4f
1 changed files with 1 additions and 5 deletions

View File

@ -98,11 +98,7 @@ namespace {
auto hq = PainterHighQualityEnabler(p);
const auto radius = std::min(badge->width(), badge->height()) / 2;
p.setPen(Qt::NoPen);
auto brush = QLinearGradient(
QPointF(badge->width(), badge->height()),
QPointF());
brush.setStops(Ui::Premium::ButtonGradientStops());
p.setBrush(brush);
p.setBrush(st::premiumButtonBg2);
p.drawRoundedRect(badge->rect(), radius, radius);
}, badge->lifetime());