feat: add ease like on Android

This commit is contained in:
ZavaruKitsu 2023-11-04 14:23:17 +03:00
parent 4ad0804d55
commit 7b32e9af5e
3 changed files with 7 additions and 3 deletions

View file

@ -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([=]

View file

@ -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