diff --git a/Telegram/SourceFiles/boxes/filters/edit_filter_chats_list.cpp b/Telegram/SourceFiles/boxes/filters/edit_filter_chats_list.cpp index a3a1b015e..bc783f194 100644 --- a/Telegram/SourceFiles/boxes/filters/edit_filter_chats_list.cpp +++ b/Telegram/SourceFiles/boxes/filters/edit_filter_chats_list.cpp @@ -336,7 +336,28 @@ void PaintFilterChatsTypeIcon( auto hq = PainterHighQualityEnabler(p); p.setBrush(color->b); p.setPen(Qt::NoPen); - p.drawEllipse(rect); + switch (cUserpicCornersType()) { + case 0: + p.drawRoundedRect( + rect, + 0, 0); + break; + + case 1: + p.drawRoundedRect( + rect, + st::buttonRadius, st::buttonRadius); + break; + + case 2: + p.drawRoundedRect( + rect, + st::dateRadius, st::dateRadius); + break; + + default: + p.drawEllipse(rect); + } icon.paintInCenter(p, rect); }