mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Don't make multiboost badge gradient.
This commit is contained in:
parent
c530d7cc89
commit
468d4c5e4f
@ -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…
x
Reference in New Issue
Block a user