Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -rc65859e54930664100dfdff13afa019e05ae23b6 -r4746b6bcbf4def7888f7b29d72431b28e6672f12 --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision c65859e54930664100dfdff13afa019e05ae23b6) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 4746b6bcbf4def7888f7b29d72431b28e6672f12) @@ -25,6 +25,7 @@ */ RangeRect { id: _root property real value : _progressRect.value + property real minStop : undefined property real defaultValue : _root.minimum property real step : 1 @@ -55,6 +56,7 @@ property bool hasBorder : true property bool showMinMaxText : true property color borderColor : Colors.borderDisableButton + property color highlightColor : Colors.sliderHighlightColor signal activeChanged() signal handleSelected() @@ -105,7 +107,7 @@ function setActiveVisuals(active) { if (active) { - color = Colors.sliderHighlightColor + color = _root.highlightColor handlerColor = Colors.createTreatmentActive } else { color = Colors.createTreatmentInactive @@ -191,6 +193,11 @@ let mMinimum = Number(_root.minimum.toFixed(decimal)) let mMaximum = Number(_root.maximum.toFixed(decimal)) + // if there is a minimum stop, then adjust the slider minimum to that value + if (minStop && mMinimum < minStop) { + mMinimum = minStop + } + // the center of the handler is aligned on the snap point and half width shall be used to set as min not the entire width. // also half of the hadler is out of slider min position when set on min, which proves the same as above. if(x < ( _handler.width / 2 ) ) { @@ -260,7 +267,7 @@ ProgressRect { id: _progressRect property real previousSliderValue: Number.NaN value : minimum - color : Colors.sliderHighlightColor + color : _root.highlightColor decimal : _root.decimal minimum : _root.minimum