Skip to content

Commit f3cd185

Browse files
committed
[ui][themes] Fix calendar view when constraints are not met
1 parent b4f6d2e commit f3cd185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ void QgsEditorWidgetWrapper::updateConstraintWidgetStatus()
121121
break;
122122

123123
case ConstraintResultFailHard:
124-
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 150, 0, 0.3);" ) );
124+
widget()->setStyleSheet( QStringLiteral( "QWidget { background-color: rgba(255, 150, 0, 0.3); } QCalendarWidget QWidget#qt_calendar_calendarview, QCalendarWidget QWidget#qt_calendar_navigationbar QWidget { color: rgb(0, 0, 0); background-color: rgba(255, 150, 0, 1); }" ) );
125125
break;
126126

127127
case ConstraintResultFailSoft:
128-
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 200, 45, 0.3);" ) );
128+
widget()->setStyleSheet( QStringLiteral( "QWidget { background-color: rgba(255, 200, 45, 0.3); } QCalendarWidget QWidget#qt_calendar_calendarview, QCalendarWidget QWidget#qt_calendar_navigationbar QWidget { color: rgb(0, 0, 0); background-color: rgba(255, 200, 45, 1); }" ) );
129129
break;
130130
}
131131
}

0 commit comments

Comments
 (0)