2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Nice reactions panel expanding.

This commit is contained in:
John Preston
2022-08-23 17:47:26 +03:00
parent 20d4d00634
commit 0277d765bb
17 changed files with 253 additions and 175 deletions

View File

@@ -351,7 +351,11 @@ void SuggestionsWidget::paintEvent(QPaintEvent *e) {
const auto x = i * _oneWidth + (_oneWidth - size) / 2;
const auto y = (_oneWidth - size) / 2;
if (row.custom) {
row.custom->paint(p, x, y, now, preview, false);
row.custom->paint(p, {
.preview = preview,
.now = now,
.position = { x, y },
});
} else {
Ui::Emoji::Draw(p, emoji, esize, x, y);
}