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

Change *[Fast|Animated] to anim::type in FadeWrap.

This commit is contained in:
John Preston
2017-09-30 22:20:40 +03:00
parent 0c4bda71fd
commit 83850d9b86
44 changed files with 201 additions and 224 deletions

View File

@@ -173,9 +173,9 @@ void WrapWidget::finishShowContent() {
: _content->desiredShadowVisibility());
if (_topTabs) {
_topTabs->finishAnimations();
_topTabs->finishAnimating();
}
_topShadow->finishAnimations();
_topShadow->finishAnimating();
updateContentGeometry();
@@ -219,14 +219,14 @@ object_ptr<Media::Widget> WrapWidget::createMediaWidget() {
}
bool WrapWidget::hasTopBarShadow() const {
return !_topShadow->isHiddenOrHiding();
return _topShadow->toggled();
}
QPixmap WrapWidget::grabForShowAnimation(
const Window::SectionSlideParams &params) {
if (params.withTopBarShadow) _topShadow->hide();
if (params.withTopBarShadow) _topShadow->hide(anim::type::instant);
auto result = myGrab(this);
if (params.withTopBarShadow) _topShadow->show();
if (params.withTopBarShadow) _topShadow->show(anim::type::instant);
return result;
}