File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ constexpr auto kClearUserpicsAfter = 50;
9696
9797} // namespace
9898
99- const crl::time ListWidget::kItemRevealDuration = crl::time(150 );
100-
10199WindowListDelegate::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 }
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ msgShadow: 2px;
2929msgSelectionOffset: 30px;
3030msgSelectionBottomSkip: 5px;
3131
32+ itemRevealDuration: 150;
33+
3234historyReplyTop: 2px;
3335historyReplyBottom: 2px;
3436historyReplyPreview: 32px;
Original file line number Diff line number Diff 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
200200HistoryView::Element *Content::maybeView () const {
You can’t perform that action at this time.
0 commit comments