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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user