应该完成了

This commit is contained in:
Mike Solar
2023-08-15 11:17:09 +08:00
parent 979595c8d8
commit a7c74a20a6
18 changed files with 587 additions and 140 deletions

View File

@ -39,7 +39,7 @@ void ConvertImageToTransparent(QImage &img)
}
}
NavBar::NavBar(ConfigResponse *configResponse, MainScreen *mainScreen,QWidget *parent) :
NavBar::NavBar(MainScreen *mainScreen,QWidget *parent) :
QWidget(parent), ui(new Ui::NavBar) {
ui->setupUi(this);
//this->setAttribute(Qt::WA_DeleteOnClose);
@ -55,9 +55,10 @@ NavBar::NavBar(ConfigResponse *configResponse, MainScreen *mainScreen,QWidget *p
config_request.sendRequest(&config_response);
SQLiteHelper sqlite_helper;
sqlite_helper.get_software(&buttonStructs, &config_response);
if(!config_response.succeed)
{
qColor.setNamedColor(DEFAULT_BACKGROUND_COLOR);
qColor.setNamedColor(buttonStructs[0].background_color);
}else
{