2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Added new Adaptive class to replace legacy Adaptive namespace.

Temporarily named class as AdaptiveModern.
This commit is contained in:
23rd
2021-05-27 02:16:12 +03:00
parent d2c8780c0f
commit 2d90a06078
7 changed files with 111 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "mainwindow.h"
#include "window/window_adaptive.h"
#include "ui/layers/layer_widget.h"
namespace Main {
@@ -39,6 +40,8 @@ public:
}
[[nodiscard]] bool locked() const;
[[nodiscard]] AdaptiveModern &adaptive() const;
void finishFirstShow();
void setupPasscodeLock();
@@ -90,6 +93,7 @@ private:
Main::Account *_account = nullptr;
::MainWindow _widget;
const std::unique_ptr<AdaptiveModern> _adaptive;
std::unique_ptr<SessionController> _sessionController;
base::Timer _isActiveTimer;
QPointer<Ui::BoxContent> _termsBox;