2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added initial controller of message sending animations.

This commit is contained in:
23rd
2022-02-08 22:19:01 +03:00
committed by John Preston
parent cb7da60ec7
commit b46adec413
8 changed files with 314 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ struct ChatThemeKey;
struct ChatPaintContext;
struct ChatThemeBackground;
struct ChatThemeBackgroundData;
class MessageSendingAnimationController;
} // namespace Ui
namespace Data {
@@ -279,6 +280,8 @@ public:
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
anim::type animated = anim::type::normal);
[[nodiscard]] auto sendingAnimation() const
-> Ui::MessageSendingAnimationController &;
[[nodiscard]] auto tabbedSelector() const
-> not_null<ChatHelpers::TabbedSelector*>;
void takeTabbedSelectorOwnershipFrom(not_null<QWidget*> parent);
@@ -509,6 +512,9 @@ private:
const not_null<Controller*> _window;
const std::unique_ptr<ChatHelpers::EmojiInteractions> _emojiInteractions;
using SendingAnimation = Ui::MessageSendingAnimationController;
const std::unique_ptr<SendingAnimation> _sendingAnimation;
std::unique_ptr<Passport::FormController> _passportForm;
std::unique_ptr<FiltersMenu> _filters;