Skip to content

Commit 4027d3c

Browse files
committed
Replaced easeOutCirc with easeOutQuint for message revealing animation.
1 parent ec78d3b commit 4027d3c

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

Telegram/SourceFiles/history/history_widget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7134,7 +7134,7 @@ void HistoryWidget::startItemRevealAnimations() {
71347134
[=] { revealItemsCallback(); },
71357135
0.,
71367136
1.,
7137-
HistoryView::ListWidget::kItemRevealDuration,
7137+
st::itemRevealDuration,
71387138
anim::easeOutCirc);
71397139
if (item->out() || _history->peer->isSelf()) {
71407140
_list->theme()->rotateComplexGradientBackground();

Telegram/SourceFiles/history/view/history_view_list_widget.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ constexpr auto kClearUserpicsAfter = 50;
9696

9797
} // namespace
9898

99-
const crl::time ListWidget::kItemRevealDuration = crl::time(150);
100-
10199
WindowListDelegate::WindowListDelegate(
102100
not_null<Window::SessionController*> window)
103101
: _window(window) {
@@ -2009,8 +2007,8 @@ void ListWidget::startItemRevealAnimations() {
20092007
[=] { revealItemsCallback(); },
20102008
0.,
20112009
1.,
2012-
kItemRevealDuration,
2013-
anim::easeOutCirc);
2010+
st::itemRevealDuration,
2011+
anim::easeOutQuint);
20142012
if (view->data()->out()) {
20152013
_delegate->listChatTheme()->rotateComplexGradientBackground();
20162014
}

Telegram/SourceFiles/history/view/history_view_list_widget.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ class ListWidget final
292292
not_null<Main::Session*> session,
293293
not_null<ListDelegate*> delegate);
294294

295-
static const crl::time kItemRevealDuration;
296-
297295
[[nodiscard]] Main::Session &session() const;
298296
[[nodiscard]] not_null<Window::SessionController*> controller() const;
299297
[[nodiscard]] not_null<ListDelegate*> delegate() const;

Telegram/SourceFiles/ui/chat/chat.style

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ msgShadow: 2px;
2929
msgSelectionOffset: 30px;
3030
msgSelectionBottomSkip: 5px;
3131

32+
itemRevealDuration: 150;
33+
3234
historyReplyTop: 2px;
3335
historyReplyBottom: 2px;
3436
historyReplyPreview: 32px;

Telegram/SourceFiles/ui/effects/message_sending_animation_controller.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ For license and copyright information please follow this link:
1111
#include "data/data_session.h"
1212
#include "history/history_item.h"
1313
#include "history/view/history_view_element.h"
14-
#include "history/view/history_view_list_widget.h" // kItemRevealDuration
1514
#include "history/view/media/history_view_media.h"
1615
#include "main/main_session.h"
1716
#include "mainwidget.h"
@@ -194,7 +193,8 @@ Content::Content(
194193
std::move(animationCallback),
195194
0.,
196195
1.,
197-
HistoryView::ListWidget::kItemRevealDuration);
196+
st::itemRevealDuration,
197+
anim::easeOutQuint);
198198
}
199199

200200
HistoryView::Element *Content::maybeView() const {

0 commit comments

Comments
 (0)