2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Move Info::TopBarOverride to Info::TopBar.

This allows to improve animations in shared media items selection.
This commit is contained in:
John Preston
2017-11-27 15:43:57 +04:00
parent 6afe18503d
commit d014b47958
27 changed files with 341 additions and 502 deletions

View File

@@ -267,7 +267,7 @@ void DialogsWidget::showAnimated(Window::SlideDirection direction, const Window:
_mainMenuToggle->hide();
if (_forwardCancel) _forwardCancel->hide();
_filter->hide();
_cancelSearch->hide();
_cancelSearch->hide(anim::type::instant);
_jumpToDate->hide(anim::type::instant);
_chooseFromUser->hide(anim::type::instant);
_lockUnlock->hide();
@@ -827,10 +827,8 @@ void DialogsWidget::onFilterUpdate(bool force) {
_inner->onFilterUpdate(filterText, force);
if (filterText.isEmpty()) {
clearSearchCache();
_cancelSearch->hideAnimated();
} else {
_cancelSearch->showAnimated();
}
_cancelSearch->toggle(!filterText.isEmpty(), anim::type::normal);
updateJumpToDateVisibility();
if (filterText.size() < MinUsernameLength) {