2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow creating desktop part of multi-theme.

This commit is contained in:
John Preston
2019-09-05 13:51:36 +03:00
parent 79106e0c01
commit 4951eeac98
24 changed files with 300 additions and 233 deletions

View File

@@ -45,8 +45,10 @@ void Controller::firstShow() {
}
void Controller::checkThemeEditor() {
if (Window::Theme::Background()->isEditingTheme()) {
showRightColumn(Box<Window::Theme::Editor>(this));
using namespace Window::Theme;
if (Background()->isEditingTheme()) {
showRightColumn(
Box<Editor>(this, Background()->themeObject().cloud));
}
}