From 4fde0d2d6744a1503e32a9d76d27836858856d5d 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 1beb47be5512..d124bdf7db47 100644 --- a/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp +++ b/src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp @@ -120,11 +120,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; } }