diff --git a/src/dialogs/CEchoTestDialog.cpp b/src/dialogs/CEchoTestDialog.cpp index 6fd0541..52394fd 100644 --- a/src/dialogs/CEchoTestDialog.cpp +++ b/src/dialogs/CEchoTestDialog.cpp @@ -97,12 +97,12 @@ void CEchoTestDialog::updateCurrentActionResult(const ActionResult& aResult) if (mLoadingWidget){ delete mLoadingWidget; } - QLabel * icon = new QLabel(this); - QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png"); - icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation)); - mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight); + // QLabel * icon = new QLabel(this); + // QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png"); + // icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation)); + // mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight); if (mCurrentMessageLabel!=nullptr){ - if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red"); + // if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red"); mCurrentMessageLabel->setText(aResult.Data.toString()); } mIndex++; @@ -112,11 +112,11 @@ void CEchoTestDialog::handleActionFinish(const ActionResult& aResult) { if (mCurrentMessageLabel!=nullptr){ - QLabel * icon = new QLabel(this); - QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png"); - icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation)); - mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight); - if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red"); + // QLabel * icon = new QLabel(this); + // QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png"); + // icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation)); + // mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight); + // if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red"); mCurrentMessageLabel->setText(aResult.Data.toString()); } mIndex++; diff --git a/src/stylesheet/Dark2.css b/src/stylesheet/Dark2.css index 746d19c..4700d78 100644 --- a/src/stylesheet/Dark2.css +++ b/src/stylesheet/Dark2.css @@ -254,7 +254,9 @@ QLabel#endline { } QLabel#warn { - color: #930000; + /* color: #930000; */ + color: white; + background: transparent; font-size: 20px; max-height: 80px;