2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +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

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#pragma once
#include "mainwindow.h"
#include "ui/layers/layer_widget.h"
namespace Main {
class Account;
@@ -45,7 +46,7 @@ public:
template <typename BoxType>
QPointer<BoxType> show(
object_ptr<BoxType> content,
LayerOptions options = LayerOption::KeepOther,
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
anim::type animated = anim::type::normal) {
const auto result = QPointer<BoxType>(content.data());
showBox(std::move(content), options, animated);
@@ -66,8 +67,8 @@ public:
private:
void showBox(
object_ptr<BoxContent> content,
LayerOptions options,
object_ptr<Ui::BoxContent> content,
Ui::LayerOptions options,
anim::type animated);
void checkThemeEditor();