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

photo and video overview rewritten on layouts

This commit is contained in:
John Preston
2015-12-22 15:49:42 +03:00
parent 62723f7576
commit d3896ff53b
8 changed files with 616 additions and 267 deletions

View File

@@ -1106,7 +1106,7 @@ HistoryItem *regItem(HistoryItem *item, bool returnExisting = false);
class RadialAnimation {
public:
RadialAnimation(int32 thickness, AnimationCallbacks *callbacks);
RadialAnimation(AnimationCallbacks *callbacks);
float64 opacity() const {
return _opacity;
@@ -1124,11 +1124,10 @@ public:
step(getms());
}
void draw(Painter &p, const QRect &inner, const style::color &color);
void draw(Painter &p, const QRect &inner, int32 thickness, const style::color &color);
private:
int32 _thickness;
uint64 _firstStart, _lastStart, _lastTime;
float64 _opacity;
anim::ivalue a_arcEnd, a_arcStart;
@@ -1341,7 +1340,7 @@ protected:
struct AnimationData {
AnimationData(AnimationCallbacks *thumbOverCallbacks, AnimationCallbacks *radialCallbacks) : a_thumbOver(0, 0)
, _a_thumbOver(thumbOverCallbacks)
, radial(st::msgFileRadialLine, radialCallbacks) {
, radial(radialCallbacks) {
}
anim::fvalue a_thumbOver;
Animation _a_thumbOver;