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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user