2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Open theme editor for existing themes.

This commit is contained in:
John Preston
2019-09-05 08:18:21 +03:00
parent dd74f57a66
commit 03bdd80b2f
11 changed files with 111 additions and 91 deletions

View File

@@ -1065,8 +1065,10 @@ void Unload() {
GlobalApplying = Applying();
}
bool Apply(const QString &filepath) {
if (auto preview = PreviewFromFile(filepath, {}, {})) {
bool Apply(
const QString &filepath,
const Data::CloudTheme &cloud) {
if (auto preview = PreviewFromFile(filepath, {}, cloud)) {
return Apply(std::move(preview));
}
return false;