mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Removed anim::cvalue and ColorAnimation, all done by fvalue now.
Also moved style::interpolate to anim::color/anim::pen/anim::brush.
This commit is contained in:
@@ -65,10 +65,6 @@ introSize: size(400px, 460px);
|
||||
introSlideShift: 500px; // intro hiding animation
|
||||
introSlideDuration: 200;
|
||||
introSlideDelta: 0; // between hide start and show start
|
||||
introHideFunc: transition(easeInCirc);
|
||||
introShowFunc: transition(easeOutCirc);
|
||||
introAlphaHideFunc: transition(easeOutCirc);
|
||||
introAlphaShowFunc: transition(easeInCirc);
|
||||
introTextTop: 22px;
|
||||
introTextSize: size(400px, 93px);
|
||||
introCallSkip: 15px;
|
||||
|
@@ -36,6 +36,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "ui/effects/widget_fade_wrap.h"
|
||||
#include "styles/style_intro.h"
|
||||
#include "autoupdater.h"
|
||||
#include "window/slide_animation.h"
|
||||
|
||||
IntroWidget::IntroWidget(QWidget *parent) : TWidget(parent)
|
||||
, _a_stage(animation(this, &IntroWidget::step_stage))
|
||||
@@ -229,9 +230,9 @@ void IntroWidget::step_show(float64 ms, bool timer) {
|
||||
}
|
||||
if (App::app()) App::app()->mtpUnpause();
|
||||
} else {
|
||||
a_coordUnder.update(dt, st::slideFunction);
|
||||
a_coordOver.update(dt, st::slideFunction);
|
||||
a_shadow.update(dt, st::slideFunction);
|
||||
a_coordUnder.update(dt, Window::SlideAnimation::transition());
|
||||
a_coordOver.update(dt, Window::SlideAnimation::transition());
|
||||
a_shadow.update(dt, Window::SlideAnimation::transition());
|
||||
}
|
||||
if (timer) update();
|
||||
}
|
||||
@@ -255,10 +256,10 @@ void IntroWidget::step_stage(float64 ms, bool timer) {
|
||||
step()->activate();
|
||||
if (App::app()) App::app()->mtpUnpause();
|
||||
} else {
|
||||
a_coordShow.update(dt2, st::introShowFunc);
|
||||
a_opacityShow.update(dt2, st::introAlphaShowFunc);
|
||||
a_coordHide.update(dt1, st::introHideFunc);
|
||||
a_opacityHide.update(dt1, st::introAlphaHideFunc);
|
||||
a_coordShow.update(dt2, anim::easeOutCirc);
|
||||
a_opacityShow.update(dt2, anim::easeInCirc);
|
||||
a_coordHide.update(dt1, anim::easeInCirc);
|
||||
a_opacityHide.update(dt1, anim::easeOutCirc);
|
||||
}
|
||||
if (timer) update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user