2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Display custom emoji in custom notifications.

This commit is contained in:
John Preston
2022-07-01 20:06:23 +04:00
parent be36f07168
commit 8c8cbbbc83
4 changed files with 80 additions and 31 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/notifications_manager.h"
#include "ui/effects/animations.h"
#include "ui/text/text.h"
#include "ui/rp_widget.h"
#include "base/timer.h"
#include "base/binary_guard.h"
@@ -260,15 +261,20 @@ private:
void changeHeight(int newHeight);
void updateGeometry(int x, int y, int width, int height) override;
void actionsOpacityCallback();
void paintText(Painter &p);
void customEmojiCallback();
[[nodiscard]] Notifications::Manager::NotificationId myId() const;
const not_null<PeerData*> _peer;
QPixmap _cache;
QImage _cache;
Ui::Text::String _textCache;
QRect _textRect;
bool _hideReplyButton = false;
bool _actionsVisible = false;
bool _textRepaintScheduled = false;
Ui::Animations::Simple a_actionsOpacity;
QPixmap _buttonsCache;