2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

New settings section widgets added. Settings cover section is ready.

This commit is contained in:
John Preston
2016-08-19 19:26:31 +02:00
parent ea955635ac
commit b9e22f59a1
33 changed files with 1489 additions and 38 deletions

View File

@@ -682,12 +682,29 @@ void MainWindow::showSettings() {
return;
}
if (!layerBg) {
layerBg = new LayerStackWidget(this);
if (true) {
if (!layerBg) {
layerBg = new LayerStackWidget(this);
}
settings = new Settings::Widget();
connect(settings, SIGNAL(destroyed(QObject*)), this, SLOT(onSettingsDestroyed(QObject*)));
layerBg->showSpecialLayer(settings);
} else {
QPixmap bg = grabInner();
if (intro) {
intro->stop_show();
intro->hide();
} else if (main) {
main->animStop_show();
main->hide();
}
auto settings = new SettingsWidget(this);
settings->animShow(bg);
title->updateBackButton();
fixOrder();
}
settings = new Settings::Widget();
connect(settings, SIGNAL(destroyed(QObject*)), this, SLOT(onSettingsDestroyed(QObject*)));
layerBg->showSpecialLayer(settings);
}
void MainWindow::ui_hideSettingsAndLayer(ShowLayerOptions options) {