2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Add a box for new theme creating.

This commit is contained in:
John Preston
2019-09-02 19:10:18 +03:00
parent 1e3b72ab74
commit 4b045a602c
16 changed files with 322 additions and 72 deletions

View File

@@ -9,7 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/application.h"
#include "main/main_account.h"
#include "window/layer_widget.h"
#include "window/window_session_controller.h"
#include "window/themes/window_theme.h"
#include "window/themes/window_theme_editor.h"
#include "mainwindow.h"
namespace Window {
@@ -35,6 +38,13 @@ Controller::~Controller() {
void Controller::firstShow() {
_widget.firstShow();
checkThemeEditor();
}
void Controller::checkThemeEditor() {
if (Window::Theme::Background()->isEditingTheme()) {
_widget.showRightColumn(Box<Window::Theme::Editor>());
}
}
void Controller::setupPasscodeLock() {