Skip to content

Commit

Permalink
Don't make multiboost badge gradient.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 10, 2023
1 parent c530d7c commit 468d4c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Telegram/SourceFiles/ui/boxes/boost_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 468d4c5

Please sign in to comment.