Skip to content

Commit

Permalink
Merge pull request qgis#59952 from nirvn/calendar_form_fix
Browse files Browse the repository at this point in the history
[ui][themes] Fix calendar view when constraints are not met
  • Loading branch information
elpaso authored Dec 18, 2024
2 parents a1863a4 + f3cd185 commit 95a36c9
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 @@ -121,11 +121,11 @@ void QgsEditorWidgetWrapper::updateConstraintWidgetStatus()
break;

case ConstraintResultFailHard:
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 150, 0, 0.3);" ) );
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); }" ) );
break;

case ConstraintResultFailSoft:
widget()->setStyleSheet( QStringLiteral( "background-color: rgba(255, 200, 45, 0.3);" ) );
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); }" ) );
break;
}
}
Expand Down

0 comments on commit 95a36c9

Please sign in to comment.