From e7debf1807e5b9a6ef097e52ab205151b2247180 Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Mon, 13 Nov 2023 18:29:11 +0700 Subject: [PATCH] [ui][themes] Make attribute form constraints background coloring compatible with dark themes --- src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp b/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp index c1ee814a3ae7..77b9ee106a20 100644 --- a/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp +++ b/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp @@ -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; } }