mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Don't make multiboost badge gradient.
This commit is contained in:
parent
c530d7cc89
commit
468d4c5e4f
1 changed files with 1 additions and 5 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue