feat: avatar corners

This commit is contained in:
AlexeyZavar
2026-03-01 03:14:19 +03:00
parent c26d158bc7
commit 38917114f0
42 changed files with 701 additions and 66 deletions
+5 -1
View File
@@ -29,6 +29,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwidget.h"
#include "styles/style_dialogs.h"
// AyuGram includes
#include "ayu/ui/ayu_userpic.h"
namespace Data {
namespace {
@@ -269,7 +273,7 @@ void Folder::paintUserpic(
p.setBrush(overrideBg ? *overrideBg : st::historyPeerArchiveUserpicBg);
{
PainterHighQualityEnabler hq(p);
p.drawEllipse(x, y, size, size);
AyuUserpic::PaintShape(p, x, y, size);
}
if (size == st::defaultDialogRow.photoSize) {
const auto rect = QRect{ x, y, size, size };