update:更新"更新全部"按钮样式

This commit is contained in:
2025-06-03 14:50:47 +08:00
parent 623db2ea76
commit 48257722fb

View File

@@ -56,7 +56,34 @@ void MainWindow::initStyle()
selection-background-color: #F3F4F6; selection-background-color: #F3F4F6;
selection-color: #111827; selection-color: #111827;
} }
)"); )");
//更新软件按钮样式
ui->updatePushButton->setStyleSheet(R"(
QPushButton {
background-color: #2563EB;
color: #FFFFFF;
border: none;
border-radius: 4px;
font-size: 14px;
padding: 6px 12px;
text-align: center;
}
QPushButton:hover {
background-color: #1D4ED8; /* 深一点的 hover 效果,可选 */
}
QPushButton:pressed {
background-color: #1E40AF; /* 按下效果,可选 */
}
QPushButton:disabled {
background-color: #A5B4FC;
color: #F9FAFB;
}
)");
} }