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

@@ -30,6 +30,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "observer_peer.h"
#include "apiwrap.h"
#include "facades.h"
#include "styles/style_layers.h"
#include "styles/style_boxes.h"
namespace Main {
@@ -43,7 +44,7 @@ constexpr auto kOccupyFor = TimeId(60);
constexpr auto kReoccupyEach = 30 * crl::time(1000);
constexpr auto kMaxSupportInfoLength = MaxMessageSize * 4;
class EditInfoBox : public BoxContent {
class EditInfoBox : public Ui::BoxContent {
public:
EditInfoBox(
QWidget*,
@@ -517,7 +518,7 @@ void Helper::showEditInfoBox(not_null<UserData*> user) {
};
Ui::show(
Box<EditInfoBox>(&user->session(), editData, save),
LayerOption::KeepOther);
Ui::LayerOption::KeepOther);
}
void Helper::saveInfo(