feat: change some alert message color to white, cause by foo
This commit is contained in:
@@ -97,12 +97,12 @@ void CEchoTestDialog::updateCurrentActionResult(const ActionResult& aResult)
|
|||||||
if (mLoadingWidget){
|
if (mLoadingWidget){
|
||||||
delete mLoadingWidget;
|
delete mLoadingWidget;
|
||||||
}
|
}
|
||||||
QLabel * icon = new QLabel(this);
|
// QLabel * icon = new QLabel(this);
|
||||||
QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png");
|
// QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png");
|
||||||
icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation));
|
// icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation));
|
||||||
mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight);
|
// mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight);
|
||||||
if (mCurrentMessageLabel!=nullptr){
|
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());
|
mCurrentMessageLabel->setText(aResult.Data.toString());
|
||||||
}
|
}
|
||||||
mIndex++;
|
mIndex++;
|
||||||
@@ -112,11 +112,11 @@ void CEchoTestDialog::handleActionFinish(const ActionResult& aResult)
|
|||||||
{
|
{
|
||||||
|
|
||||||
if (mCurrentMessageLabel!=nullptr){
|
if (mCurrentMessageLabel!=nullptr){
|
||||||
QLabel * icon = new QLabel(this);
|
// QLabel * icon = new QLabel(this);
|
||||||
QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png");
|
// QPixmap pix(aResult.Code == ActionCode::Sucessed?":/icons/selected.png":":/icons/close_circle.png");
|
||||||
icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation));
|
// icon->setPixmap(pix.scaledToHeight(24, Qt::TransformationMode::SmoothTransformation));
|
||||||
mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight);
|
// mMessageLayout->addWidget(icon,mIndex,1, Qt::AlignRight);
|
||||||
if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red");
|
// if(aResult.Code != ActionCode::Sucessed)mCurrentMessageLabel->setStyleSheet("color:red");
|
||||||
mCurrentMessageLabel->setText(aResult.Data.toString());
|
mCurrentMessageLabel->setText(aResult.Data.toString());
|
||||||
}
|
}
|
||||||
mIndex++;
|
mIndex++;
|
||||||
|
|||||||
@@ -254,7 +254,9 @@ QLabel#endline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QLabel#warn {
|
QLabel#warn {
|
||||||
color: #930000;
|
/* color: #930000; */
|
||||||
|
color: white;
|
||||||
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
|
|||||||
Reference in New Issue
Block a user