Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -r228cbe41bce11893d843d6caf0271b8571abedac -r89426b2b3d45008f5e6cb19e0c7adef3a242ce36 --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 228cbe41bce11893d843d6caf0271b8571abedac) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 89426b2b3d45008f5e6cb19e0c7adef3a242ce36) @@ -50,6 +50,10 @@ property int tickMarksThickness : 2 + property bool isRoundedEnds : true + property bool hasBorder : true + property color borderColor : Colors.borderDisableButton + signal activeChanged() signal handleSelected() @@ -118,8 +122,12 @@ height : Variables.progressbarHeight touchMargin : 25 leftRightTouchMargin: _handler.width/2 - borderColor : _root.isActive ? Colors.sliderBorderActive : Colors.sliderBorderInactive + radius : _root.isRoundedEnds ? (height/2) : Variables.rangeRectRadius + + border.width: _root.hasBorder ? Variables.rangeRectBorderWidth : 0 + border.color: _root.isActive ? Colors.borderButton : Colors.borderDisableButton + minimum : 0 maximum : 0 @@ -230,12 +238,13 @@ decimal : _root.decimal minimum : _root.minimum maximum : _root.maximum - leftRightTouchMargin: _handler.width/2 - isRoundedEnds : _root.isRoundedEnds - hasBorder : _root.hasBorder - borderColor : _root.isActive ? Colors.sliderBorderActive : Colors.sliderBorderInactive + radius : _root.isRoundedEnds ? (height/2) : Variables.rangeRectRadius + + border.width: _root.hasBorder ? Variables.rangeRectBorderWidth : 0 + border.color: _root.isActive ? Colors.borderButton : Colors.borderDisableButton + // propagation is not working on drag ! onDragged: { _root.dragged(vMouseEvent)