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

Use new animations engine in all Basic-s.

This commit is contained in:
John Preston
2019-04-01 21:44:54 +04:00
parent cd3c1c6dc0
commit a6e96f9a28
41 changed files with 479 additions and 487 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "dialogs/dialogs_widget.h"
#include "dialogs/dialogs_key.h"
#include "data/data_messages.h"
#include "ui/effects/animations.h"
#include "base/flags.h"
namespace Dialogs {
@@ -283,7 +284,7 @@ private:
void stopReorderPinned();
int countPinnedIndex(Dialogs::Row *ofRow);
void savePinnedOrder();
void step_pinnedShifting(crl::time ms, bool timer);
bool pinnedShiftAnimationCallback(crl::time now);
void handleChatMigration(not_null<ChatData*> chat);
not_null<Window::Controller*> _controller;
@@ -313,7 +314,7 @@ private:
crl::time animStartTime = 0;
};
std::vector<PinnedRow> _pinnedRows;
BasicAnimation _a_pinnedShifting;
Ui::Animations::Basic _pinnedShiftAnimation;
std::deque<Dialogs::Key> _pinnedOrder;
// Remember the last currently dragged row top shift for updating area.