mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-02 02:07:54 +00:00
Replaced easeOutCirc with easeOutQuint for message revealing animation.
This commit is contained in:
@@ -7134,7 +7134,7 @@ void HistoryWidget::startItemRevealAnimations() {
|
||||
[=] { revealItemsCallback(); },
|
||||
0.,
|
||||
1.,
|
||||
HistoryView::ListWidget::kItemRevealDuration,
|
||||
st::itemRevealDuration,
|
||||
anim::easeOutCirc);
|
||||
if (item->out() || _history->peer->isSelf()) {
|
||||
_list->theme()->rotateComplexGradientBackground();
|
||||
|
||||
@@ -96,8 +96,6 @@ constexpr auto kClearUserpicsAfter = 50;
|
||||
|
||||
} // namespace
|
||||
|
||||
const crl::time ListWidget::kItemRevealDuration = crl::time(150);
|
||||
|
||||
WindowListDelegate::WindowListDelegate(
|
||||
not_null<Window::SessionController*> window)
|
||||
: _window(window) {
|
||||
@@ -2009,8 +2007,8 @@ void ListWidget::startItemRevealAnimations() {
|
||||
[=] { revealItemsCallback(); },
|
||||
0.,
|
||||
1.,
|
||||
kItemRevealDuration,
|
||||
anim::easeOutCirc);
|
||||
st::itemRevealDuration,
|
||||
anim::easeOutQuint);
|
||||
if (view->data()->out()) {
|
||||
_delegate->listChatTheme()->rotateComplexGradientBackground();
|
||||
}
|
||||
|
||||
@@ -292,8 +292,6 @@ public:
|
||||
not_null<Main::Session*> session,
|
||||
not_null<ListDelegate*> delegate);
|
||||
|
||||
static const crl::time kItemRevealDuration;
|
||||
|
||||
[[nodiscard]] Main::Session &session() const;
|
||||
[[nodiscard]] not_null<Window::SessionController*> controller() const;
|
||||
[[nodiscard]] not_null<ListDelegate*> delegate() const;
|
||||
|
||||
@@ -29,6 +29,8 @@ msgShadow: 2px;
|
||||
msgSelectionOffset: 30px;
|
||||
msgSelectionBottomSkip: 5px;
|
||||
|
||||
itemRevealDuration: 150;
|
||||
|
||||
historyReplyTop: 2px;
|
||||
historyReplyBottom: 2px;
|
||||
historyReplyPreview: 32px;
|
||||
|
||||
@@ -11,7 +11,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "data/data_session.h"
|
||||
#include "history/history_item.h"
|
||||
#include "history/view/history_view_element.h"
|
||||
#include "history/view/history_view_list_widget.h" // kItemRevealDuration
|
||||
#include "history/view/media/history_view_media.h"
|
||||
#include "main/main_session.h"
|
||||
#include "mainwidget.h"
|
||||
@@ -194,7 +193,8 @@ Content::Content(
|
||||
std::move(animationCallback),
|
||||
0.,
|
||||
1.,
|
||||
HistoryView::ListWidget::kItemRevealDuration);
|
||||
st::itemRevealDuration,
|
||||
anim::easeOutQuint);
|
||||
}
|
||||
|
||||
HistoryView::Element *Content::maybeView() const {
|
||||
|
||||
Reference in New Issue
Block a user