fix: apply ease to business hours

This commit is contained in:
AlexeyZavar
2025-12-10 00:36:43 +03:00
parent d48a40fa5f
commit b4e8d580d0
@@ -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(