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

Use layers and boxes from lib_ui.

This commit is contained in:
John Preston
2019-09-18 14:19:05 +03:00
parent 860353824b
commit a6c84c36c0
209 changed files with 586 additions and 3349 deletions

View File

@@ -10,11 +10,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/platform_specific.h"
#include "platform/platform_main_window.h"
#include "base/unique_qptr.h"
#include "window/layer_widget.h"
#include "ui/layers/layer_widget.h"
#include "ui/effects/animation_value.h"
class MainWidget;
class BoxContent;
namespace Intro {
class Widget;
@@ -26,8 +25,6 @@ class ClearManager;
namespace Window {
class MediaPreviewWidget;
class LayerWidget;
class LayerStackWidget;
class SectionMemento;
struct SectionShow;
class PasscodeLockWidget;
@@ -39,6 +36,8 @@ class WarningWidget;
namespace Ui {
class LinkButton;
class BoxContent;
class LayerStackWidget;
} // namespace Ui
class MediaPreviewWidget;
@@ -100,14 +99,14 @@ public:
void updateTrayMenu(bool force = false) override;
void showSpecialLayer(
object_ptr<Window::LayerWidget> layer,
object_ptr<Ui::LayerWidget> layer,
anim::type animated);
bool showSectionInExistingLayer(
not_null<Window::SectionMemento*> memento,
const Window::SectionShow &params);
void ui_showBox(
object_ptr<BoxContent> box,
LayerOptions options,
object_ptr<Ui::BoxContent> box,
Ui::LayerOptions options,
anim::type animated);
void ui_hideSettingsAndLayer(anim::type animated);
void ui_removeLayerBlackout();
@@ -171,7 +170,7 @@ private:
object_ptr<Window::PasscodeLockWidget> _passcodeLock = { nullptr };
object_ptr<Intro::Widget> _intro = { nullptr };
object_ptr<MainWidget> _main = { nullptr };
base::unique_qptr<Window::LayerStackWidget> _layer;
base::unique_qptr<Ui::LayerStackWidget> _layer;
object_ptr<Window::MediaPreviewWidget> _mediaPreview = { nullptr };
object_ptr<Window::Theme::WarningWidget> _testingThemeWarning = { nullptr };