Made Validation prettier.

This commit is contained in:
jupfi 2024-04-01 17:56:58 +02:00
parent 2c9c2f82e1
commit 52d0bca29e

View file

@ -232,7 +232,7 @@ class MeasurementView(ModuleView):
validator (QValidator): The validator to use for the widget.
"""
if validator.validate(widget.text(), 0) == QValidator.State.Acceptable:
widget.setStyleSheet("QLineEdit { background-color: transparent; }")
widget.setStyleSheet("")
elif validator.validate(widget.text(), 0) == QValidator.State.Intermediate:
widget.setStyleSheet("QLineEdit { background-color: yellow;}")
else: