2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Support adaptive forum userpic rounding radius.

This commit is contained in:
John Preston
2022-12-05 16:18:10 +04:00
parent 2407ac50bc
commit cb653df0f6
100 changed files with 662 additions and 724 deletions

View File

@@ -285,9 +285,9 @@ void PaintRow(
not_null<Entry*> entry,
VideoUserpic *videoUserpic,
PeerData *from,
Ui::PeerBadge &fromBadge,
PeerBadge &fromBadge,
Fn<void()> customEmojiRepaint,
const Ui::Text::String &fromName,
const Text::String &fromName,
const HiddenSenderInfo *hiddenSenderInfo,
HistoryItem *item,
const Data::Draft *draft,
@@ -306,8 +306,8 @@ void PaintRow(
: context.selected
? st::dialogsBgOver
: anim::brush(
st::dialogsBg,
st::dialogsBgOver,
st::dialogsBg,
st::dialogsBgOver,
context.childListShown);
p.fillRect(geometry, bg);
if (!(flags & Flag::TopicJumpRipple)) {
@@ -342,7 +342,7 @@ void PaintRow(
(flags & Flag::AllowUserOnline) ? history : nullptr,
context);
} else if (hiddenSenderInfo) {
hiddenSenderInfo->emptyUserpic.paint(
hiddenSenderInfo->emptyUserpic.paintCircle(
p,
context.st->padding.left(),
context.st->padding.top(),