2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45: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

@@ -129,16 +129,15 @@ protected:
ClickHandlerPtr &&cancell);
void setDocumentLinks(not_null<DocumentData*> document);
void step_radial(crl::time ms, bool timer);
bool radialAnimationCallback(crl::time now) const;
void ensureRadial();
void checkRadialFinished();
void checkRadialFinished() const;
bool isRadialAnimation(crl::time ms) const {
if (!_radial || !_radial->animating()) return false;
_radial->step(ms);
return _radial && _radial->animating();
bool isRadialAnimation(crl::time now) const {
return _radial
&& _radial->animating()
&& radialAnimationCallback(now);
}
virtual float64 dataProgress() const = 0;
@@ -148,7 +147,7 @@ protected:
return false;
}
std::unique_ptr<Ui::RadialAnimation> _radial;
mutable std::unique_ptr<Ui::RadialAnimation> _radial;
Animation _a_iconOver;
};