From e1f4fd0c7be2c29756ae542fe2dafb532cdd4610 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 21 Mar 2025 14:44:08 +0400 Subject: [PATCH] Remove blue border from gifts. --- .../SourceFiles/info/peer_gifts/info_peer_gifts_common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_common.cpp b/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_common.cpp index 3e77d93bd8..fb014da15a 100644 --- a/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_common.cpp +++ b/Telegram/SourceFiles/info/peer_gifts/info_peer_gifts_common.cpp @@ -305,6 +305,9 @@ void GiftButton::paintBackground(QPainter &p, const QImage &background) { auto hq = PainterHighQualityEnabler(p); const auto progress = _selectedAnimation.value(_selected ? 1. : 0.); + if (progress < 0.01) { + return; + } const auto pwidth = progress * st::defaultRoundCheckbox.width; p.setPen(QPen(st::defaultRoundCheckbox.bgActive->c, pwidth)); p.setBrush(Qt::NoBrush);