Skip to content
Permalink
Browse files
Change color of message 'No feature was found [...]' from red to oran…
…ge in preview expression widget to make it less scary
  • Loading branch information
gacarrillor committed Apr 9, 2021
1 parent 63c9f17 commit df9a6aec8e62f1f26fc35ddf1e53285698750001
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsexpressionpreviewwidget.cpp
@@ -85,7 +85,7 @@ void QgsExpressionPreviewWidget::refreshPreview()
if ( !mExpression.referencedColumns().isEmpty() || mExpression.needsGeometry() )
{
mPreviewLabel->setText( tr( "No feature was found on this layer to evaluate the expression." ) );
mPreviewLabel->setStyleSheet( QStringLiteral( "color: rgba(255, 6, 10, 255);" ) );
mPreviewLabel->setStyleSheet( QStringLiteral( "color: rgba(220, 125, 0, 255);" ) );
return;
}
}
@@ -116,7 +116,7 @@ void QgsExpressionPreviewWidget::refreshPreview()
tooltip += QStringLiteral( "<b>%1:</b> %2" ).arg( tr( "Eval Error" ), mExpression.evalErrorString() );

mPreviewLabel->setText( tr( "Expression is invalid <a href=""more"">(more info)</a>" ) );
mPreviewLabel->setStyleSheet( QStringLiteral( "color: rgba(255, 6, 10, 255);" ) );
mPreviewLabel->setStyleSheet( QStringLiteral( "color: rgba(255, 6, 10, 255);" ) );
setExpressionToolTip( tooltip );
emit expressionParsed( false );
setParserError( mExpression.hasParserError() );

0 comments on commit df9a6ae

Please sign in to comment.