Index: sources/gui/qml/components/Slider.qml =================================================================== diff -u -r839893734937449efb6e7c31787d2c44515b69af -r5f6975c6ee7823fc884328418298128cdb97107f --- sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 839893734937449efb6e7c31787d2c44515b69af) +++ sources/gui/qml/components/Slider.qml (.../Slider.qml) (revision 5f6975c6ee7823fc884328418298128cdb97107f) @@ -54,8 +54,10 @@ function setActive(active) { if (active) { + color = Colors.sliderHighlightColor handlerColor = Colors.createTreatmentActive } else { + color = Colors.createTreatmentInactive handlerColor = Colors.createTreatmentInactive } @@ -148,32 +150,25 @@ } } - Rectangle { id: _progressRectBackground - anchors.fill : _progressRect - color : _root.isActive ? Colors.sliderHighlightColor : Colors.createTreatmentInactive - radius : _root.isRoundedEnds ? (height/2) : 0 - } - // used loader for performance since it may not always be required. // and can be a heavy Component Loader { id: _ticksLoader active : ticks anchors.fill : parent sourceComponent : TickMarks { - thickness : _root.tickMarksThickness decimal : _root.decimal minimum : _root.minimum maximum : _root.maximum step : _root.step stepSnap : _root.stepSnap textColor : _root.color - length : _progressRect.height + lineTickMarkHeight : _progressRect.height + lineTickMarkThickness : _root.tickMarksThickness isTickMarkRound : _root.isRoundedEnds yDisplacement : _root.isRoundedEnds ? (-_progressRect.height) : 0 } } ProgressRect { id: _progressRect - property real previousSliderValue: Number.NaN color : Colors.transparent decimal : _root.decimal minimum : _root.minimum