Index: sources/gui/qml/components/SliderCreateTreatment.qml =================================================================== diff -u -r5d7dd96636bc7a647c61a43bb04ed25f5c2f6e7e -r38d3c6a41726ec1a02abb4eb6f63524628511a50 --- sources/gui/qml/components/SliderCreateTreatment.qml (.../SliderCreateTreatment.qml) (revision 5d7dd96636bc7a647c61a43bb04ed25f5c2f6e7e) +++ 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() {