mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
feat: add ease like on Android
This commit is contained in:
parent
4ad0804d55
commit
7b32e9af5e
3 changed files with 7 additions and 3 deletions
|
@ -235,8 +235,10 @@ not_null<Ui::RpWidget *> AddInnerToggle(not_null<Ui::VerticalLayout *> container
|
|||
{ arrow->update(); },
|
||||
toggled ? 0. : 1.,
|
||||
toggled ? 1. : 0.,
|
||||
st::slideWrapDuration);
|
||||
st::slideWrapDuration,
|
||||
anim::easeOutCubic);
|
||||
}, button->lifetime());
|
||||
wrap->ease = anim::easeOutCubic;
|
||||
|
||||
button->clicks(
|
||||
) | start_with_next([=]
|
||||
|
|
|
@ -468,8 +468,10 @@ not_null<Ui::RpWidget*> AddInnerToggle(
|
|||
[=] { arrow->update(); },
|
||||
toggled ? 0. : 1.,
|
||||
toggled ? 1. : 0.,
|
||||
st::slideWrapDuration);
|
||||
st::slideWrapDuration,
|
||||
anim::easeOutCubic);
|
||||
}, button->lifetime());
|
||||
wrap->ease = anim::easeOutCubic;
|
||||
|
||||
const auto handleLocked = [=] {
|
||||
if (locked.has_value()) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit f01a1f675e437da0ac52ae67495236006f34b661
|
||||
Subproject commit 6a56b856bad6c1e3ec09395f1b0cdac8bf6d391c
|
Loading…
Add table
Reference in a new issue