Skip to content

Commit

Permalink
Merge pull request #55272 from qgis/backport-55269-to-release-3_28
Browse files Browse the repository at this point in the history
[Backport release-3_28] [ui][themes] Make attribute form constraints background coloring compatible with dark themes
  • Loading branch information
m-kuhn authored Nov 13, 2023
2 parents 4731e2d + e7debf1 commit 531f84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ void QgsEditorWidgetWrapper::updateConstraintWidgetStatus()
break;

case ConstraintResultFailHard:
widget()->setStyleSheet( QStringLiteral( "background-color: #FFE0B2;" ) );
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 150, 0, 0.3);" ) );
break;

case ConstraintResultFailSoft:
widget()->setStyleSheet( QStringLiteral( "background-color: #FFECB3;" ) );
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 200, 45, 0.3);" ) );
break;
}
}
Expand Down

0 comments on commit 531f84a

Please sign in to comment.