mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
feat: add ease like on Android
This commit is contained in:
@@ -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
Submodule Telegram/lib_ui updated: f01a1f675e...6a56b856ba
Reference in New Issue
Block a user