mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: apply ease to business hours
This commit is contained in:
@@ -635,6 +635,7 @@ base::options::toggle ShowChannelJoinedBelowAbout({
|
||||
object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
||||
inner,
|
||||
object_ptr<Ui::VerticalLayout>(inner)));
|
||||
other->ease = anim::easeOutCubic;
|
||||
other->toggleOn(state->expanded.value(), anim::type::normal);
|
||||
constexpr auto kSlideDuration = float64(st::slideWrapDuration);
|
||||
other->setDuration(kSlideDuration);
|
||||
@@ -650,7 +651,7 @@ base::options::toggle ShowChannelJoinedBelowAbout({
|
||||
timingArrow->paintRequest() | rpl::start_with_next([=] {
|
||||
auto p = QPainter(timingArrow);
|
||||
const auto progress = other->animating()
|
||||
? (crl::now() - arrowAnimation->started()) / kSlideDuration
|
||||
? anim::easeOutCubic(1., (crl::now() - arrowAnimation->started()) / kSlideDuration)
|
||||
: 1.;
|
||||
|
||||
const auto path = Ui::ToggleUpDownArrowPath(
|
||||
|
||||
Reference in New Issue
Block a user