mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Improve info wrapping in section / layer.
Also move layerwidget to window/layer_widget. Also replace ui/effects/widget_fade_wrap with ui/wrap/fade_wrap.
This commit is contained in:
@@ -31,11 +31,6 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#include "apiwrap.h"
|
||||
|
||||
namespace Window {
|
||||
namespace {
|
||||
|
||||
constexpr auto kThirdSectionInfoTimeoutMs = 1000;
|
||||
|
||||
} // namespace
|
||||
|
||||
void Controller::enableGifPauseReason(GifPauseReason reason) {
|
||||
if (!(_gifPauseReasons & reason)) {
|
||||
@@ -195,7 +190,7 @@ void Controller::closeThirdSection() {
|
||||
}
|
||||
Auth().data().setTabbedSelectorSectionEnabled(false);
|
||||
Auth().data().setThirdSectionInfoEnabled(false);
|
||||
Auth().saveDataDelayed(kThirdSectionInfoTimeoutMs);
|
||||
Auth().saveDataDelayed();
|
||||
if (window()->size() != newWindowSize) {
|
||||
window()->resize(newWindowSize);
|
||||
} else {
|
||||
@@ -303,7 +298,7 @@ void Controller::showPeerInfo(
|
||||
if (Adaptive::ThreeColumn()
|
||||
&& !Auth().data().thirdSectionInfoEnabled()) {
|
||||
Auth().data().setThirdSectionInfoEnabled(true);
|
||||
Auth().saveDataDelayed(kThirdSectionInfoTimeoutMs);
|
||||
Auth().saveDataDelayed();
|
||||
}
|
||||
showSection(
|
||||
Info::Memento(peerId),
|
||||
|
Reference in New Issue
Block a user