mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Alpha 1.0.7: Theme editor added to Settings.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user