2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -148,13 +148,11 @@ void BadgeView::setBadge(Badge badge, DocumentId emojiStatusId) {
_view->paintRequest(
) | rpl::start_with_next([=, check = _view.data()]{
Painter p(check);
_emojiStatus->paint(
p,
0,
0,
crl::now(),
st::windowBgOver->c,
_animationPaused && _animationPaused());
_emojiStatus->paint(p, {
.preview = st::windowBgOver->c,
.now = crl::now(),
.paused = _animationPaused && _animationPaused(),
});
}, _view->lifetime());
} else {
const auto icon = (_badge == Badge::Verified)