2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Upload saved theme to the cloud.

This commit is contained in:
John Preston
2019-09-03 11:25:19 +03:00
parent 4b045a602c
commit 229bc56cc8
15 changed files with 834 additions and 421 deletions

View File

@@ -43,7 +43,7 @@ void Controller::firstShow() {
void Controller::checkThemeEditor() {
if (Window::Theme::Background()->isEditingTheme()) {
_widget.showRightColumn(Box<Window::Theme::Editor>());
showRightColumn(Box<Window::Theme::Editor>(this));
}
}
@@ -74,6 +74,10 @@ void Controller::showBox(
_widget.ui_showBox(std::move(content), options, animated);
}
void Controller::showRightColumn(object_ptr<TWidget> widget) {
_widget.showRightColumn(std::move(widget));
}
void Controller::activate() {
_widget.activate();
}