压力算法移植前
This commit is contained in:
+12
-12
@@ -1933,7 +1933,7 @@ void MainWidget::initSheet()
|
||||
QString startBtnSheet = R"(
|
||||
QPushButton {
|
||||
background-color: #1e8449;
|
||||
color: black;
|
||||
color: #99A89B;
|
||||
border-radius: 5px;
|
||||
}
|
||||
QPushButton:disabled {
|
||||
@@ -1947,8 +1947,8 @@ void MainWidget::initSheet()
|
||||
|
||||
QString stopBtnSheet = R"(
|
||||
QPushButton {
|
||||
background-color: #e74c3c;
|
||||
color: black;
|
||||
background-color: #D5614E;
|
||||
color: #99A89B;
|
||||
border-radius: 5px;
|
||||
}
|
||||
QPushButton:disabled {
|
||||
@@ -1987,12 +1987,13 @@ void MainWidget::changeHighLight(bool isStart)
|
||||
QString highlightStyle =
|
||||
R"(
|
||||
QPushButton {
|
||||
background-color: #27ae60;
|
||||
background-color: #29B561;
|
||||
color: black;
|
||||
border-radius: 5px;
|
||||
border: 3px solid #f39c12;
|
||||
box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
|
||||
}
|
||||
|
||||
QPushButton:disabled {
|
||||
background-color: #bdc3c7; /* 灰色背景 */
|
||||
color: #7f8c8d; /* 灰色文字 */
|
||||
@@ -2006,7 +2007,7 @@ void MainWidget::changeHighLight(bool isStart)
|
||||
QString highlightStyle =
|
||||
R"(
|
||||
QPushButton {
|
||||
background-color: #f07167;
|
||||
background-color: #e55f5f;
|
||||
color: black;
|
||||
border-radius: 5px;
|
||||
border: 3px solid #f39c12;
|
||||
@@ -2351,14 +2352,13 @@ void MainWidget::updateSysStatusToUI(){ //100ms
|
||||
// ui->pushButton_Reboot->setEnabled(false);
|
||||
}
|
||||
|
||||
// if(sysPara->RFIDPara.inkCardTimeOut || sysPara->RFIDPara.solventCardTimeOut || sysPara->RFIDPara.needMaintenance)
|
||||
// m_RightBtn->setEnabled(false); todo
|
||||
// else if(sysPara->status.selfCheckDone == 1)
|
||||
// {
|
||||
// m_RightBtn->setEnabled(true);
|
||||
// }
|
||||
if(sysPara->RFIDPara.inkCardTimeOut || sysPara->RFIDPara.solventCardTimeOut || sysPara->RFIDPara.needMaintenance) {
|
||||
m_RightBtn->setEnabled(false);
|
||||
}
|
||||
else if(sysPara->status.selfCheckDone == 1) {
|
||||
m_RightBtn->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool MainWidget::checkRed(AlarmStatus &status)
|
||||
|
||||
Reference in New Issue
Block a user