2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Paint reaction animations above everything.

This commit is contained in:
John Preston
2022-01-11 17:57:00 +03:00
parent 0ab26f0c82
commit 34c36d77c3
10 changed files with 107 additions and 45 deletions

View File

@@ -90,9 +90,15 @@ struct MessageImageStyle {
style::icon historyVideoMessageMute = { Qt::Uninitialized };
};
struct ReactionEffectPainter {
QPoint offset;
Fn<QRect(QPainter&)> paint;
};
struct ChatPaintContext {
not_null<const ChatStyle*> st;
const BubblePattern *bubblesPattern = nullptr;
ReactionEffectPainter *reactionEffects = nullptr;
QRect viewport;
QRect clip;
TextSelection selection;