update:更新背景颜色

This commit is contained in:
momen 2025-06-03 14:56:05 +08:00
parent 48257722fb
commit a9c137110c
2 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,7 @@ MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
checkUpdates();
// checkUpdates();
ui->setupUi(this);
initStyle();
}
@ -84,7 +84,16 @@ void MainWindow::initStyle()
}
)");
//设置背景填充颜色
ui->backgroundWidget->setStyleSheet(R"(
QWidget {
background-color: #FFFFFF;
border-radius: 12px;
}
)");
//设置主背景颜色
this->setStyleSheet("background-color: #F8FAFC;");
}
void MainWindow::checkUpdates()

View File

@ -63,7 +63,7 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QWidget" name="widget_2" native="true">
<widget class="QWidget" name="backgroundWidget" native="true">
<property name="minimumSize">
<size>
<width>1376</width>