2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Alpha 1.0.7: Theme editor added to Settings.

This commit is contained in:
John Preston
2017-02-07 20:39:47 +03:00
parent b842761ea3
commit 27a4d0f029
13 changed files with 61 additions and 52 deletions

View File

@@ -100,14 +100,7 @@ void fillCodes() {
});
});
Codes.insert(qsl("edittheme"), []() {
auto palettePath = Local::themePaletteAbsolutePath();
if (palettePath.isEmpty()) {
FileDialog::askWritePath(lang(lng_theme_editor_save_palette), "Palette (*.tdesktop-palette)", "colors.tdesktop-palette", [](const QString &path) {
Window::Theme::Editor::StartFromCurrentTheme(path);
});
} else {
Window::Theme::Editor::Start(palettePath);
}
Window::Theme::Editor::Start();
});
}