mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-20 03:01:36 +08:00
update:更新"更新全部"按钮样式
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
)");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user