Index: sources/gui/qml/pages/treatment/sections/TreatmentUltrafiltration.qml =================================================================== diff -u -r7caa737179a8c31825ae6445f593ac7ff5f95080 -r23f8a6036e22f80c3c5fd2834a2980bb62d2a34d --- sources/gui/qml/pages/treatment/sections/TreatmentUltrafiltration.qml (.../TreatmentUltrafiltration.qml) (revision 7caa737179a8c31825ae6445f593ac7ff5f95080) +++ sources/gui/qml/pages/treatment/sections/TreatmentUltrafiltration.qml (.../TreatmentUltrafiltration.qml) (revision 23f8a6036e22f80c3c5fd2834a2980bb62d2a34d) @@ -29,8 +29,8 @@ TreatmentSection { id: _root readonly property real minimum : vTreatmentUltrafiltration.minimum - readonly property real maximum : vTreatmentUltrafiltration.maximum - readonly property real value : vTreatmentUltrafiltration.ultrafiltration_RefUFVol + readonly property real maximum : 100//vTreatmentUltrafiltration.maximum + readonly property real value : 60//vTreatmentUltrafiltration.ultrafiltration_RefUFVol readonly property int topTextFontSize : 25 readonly property int bottomTextFontSize : 60 @@ -75,7 +75,7 @@ topTextFont.pixelSize : topTextFontSize topTextFont.weight : Font.Medium - bottomText : vTreatmentUltrafiltration.ultrafiltration_UfCurrentRate.toFixed(0) + bottomText : vTreatmentUltrafiltration.ultrafiltration_UfCurrentRate.toFixed(Variables.ultrafiltrationPrecision) bottomTextFont.pixelSize: bottomTextFontSize bottomTextFont.weight : Font.Normal leftAlign : true @@ -89,7 +89,8 @@ width : contentItem.width height : _root.height - ProgressBarEx { id: _progressbarex + + ProgressBar { id: _progressbar enabled : ! isSBInProgress width : contentItem.width * 0.6 height : 20 @@ -98,29 +99,12 @@ minimum : _root.minimum maximum : _root.maximum value : _root.value - valueEx : 0 unitText: Variables.unitVolume - marker.handle.width : 12 - marker.handle.height: marker.handle.width - marker.text.anchors { - bottom : marker.handle.top - bottomMargin: 10 - right : marker.handle.right - // center align text above handle until about 75% through progress bar then right align to not cut off value - rightMargin : (_root.value / (_root.maximum - _root.minimum)) > 0.75 ? 0 : -Variables.defaultMargin * 3 - } + color : Colors.progressBarUltrafiltration + radius : height + progressRadius : radius + showMarker : false - gradientStart : "#2184FA" - gradientEnd : "#67ACFF" - - marker.color : isUFPaused ? "dimgray" : Colors.rangeMarker - marker.font { - weight : Font.DemiBold - pixelSize : 40 - } - - marker.valueOnTop : true - minText.color: "#818181" minText.font { pixelSize : 18 @@ -133,6 +117,19 @@ weight : Font.Normal } + Text { id: _valueText + anchors { + bottom : parent.top + bottomMargin : Variables.defaultMargin + right : parent.right + } + text : _root.value + Variables.unitVolume + color : Colors.white + font.pixelSize : 40 + font.weight : Font.DemiBold + + } + Text { id: _volumeRemovedText anchors { top : parent.bottom @@ -150,7 +147,7 @@ } } - TouchRect { id: _isolatedUFButton + Rectangle { id: _isolatedUFRect anchors { top : header.bottom topMargin : Variables.defaultMargin @@ -161,17 +158,18 @@ width : 250 height : 60 radius : height - text.text : ufButtonText - backgroundColor : Colors.backgroundMain - borderColor : backgroundColor - textColor : ufButtonColor - text.font { - weight : Font.DemiBold - pixelSize : 20 + color : Colors.backgroundMain + + Text { id: _isolatedUFText + anchors.centerIn: parent + text : _root.ufButtonText + color : _root.ufButtonColor + + font { + weight : Font.DemiBold + pixelSize : 20 + } } - onPressed : { - // TODO - } } // TODO