Index: sources/gui/qml/components/SliderCreateTreatment.qml =================================================================== diff -u -r642f08650a7a88ad6a2305fdea6bd18365aab5c7 -r38d3c6a41726ec1a02abb4eb6f63524628511a50 --- sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 642f08650a7a88ad6a2305fdea6bd18365aab5c7) +++ sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 38d3c6a41726ec1a02abb4eb6f63524628511a50) @@ -54,16 +54,10 @@ anchors.horizontalCenter: parent.horizontalCenter function setColor() { - let color = Colors.textDisableButton - if ( _root.active ) { - if ( _root.valid ) { - color = Colors.textMain - } - else { - color = Colors.createTreatmentInvalidParam - } - } - return color + let color = Colors.textMain + if ( ! _root.valid ) { color = Colors.createTreatmentInvalidParam ; return color } + if ( ! _root.active ) { color = Colors.textDisableButton ; return color } + return color } function setValue() { @@ -91,7 +85,7 @@ } function setActiveValid() { - _root.active = _root.valid = true + _root.active = true } Text { id: _label