Index: sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml =================================================================== diff -u -r975e1964b60365b24c74be139c6b84369a7248ce -r135c320c850b09365c04e03d95195412c12fba72 --- sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml (.../TreatmentAdjustmentUltrafiltrationMetrics.qml) (revision 975e1964b60365b24c74be139c6b84369a7248ce) +++ sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml (.../TreatmentAdjustmentUltrafiltrationMetrics.qml) (revision 135c320c850b09365c04e03d95195412c12fba72) @@ -26,51 +26,68 @@ * that display the ultrafiltration volume removed and goal. */ Item { id: _root - property real setVolume : 0 - property real volumeRemoved : 0 + property real setVolume : 0 + property real volumeRemoved : 0 + property color volumeRemovedColor : Colors.fluidText implicitWidth : (_ufVolumeRemovedItem.width * 2) + Variables.columnSpacing implicitHeight : _ufVolumeRemovedItem.height component ValueItem: Rectangle { id: _valueItem property alias label : _label.text property alias value : _value.text - property color textColor : Colors.fluidText + property color textColor : Colors.offWhite anchors.centerIn : parent - width : 350 - height : 60 + width : 425 + height : 63 radius : 5 color : Colors.panelBackgroundColor border { width : Variables.panelBorderWidth color : Colors.panelBorderColor } - Item { id: _textContainer + Item { id: _contentItem anchors.centerIn: parent width : childrenRect.width height : parent.height Text { id: _label - anchors{ + anchors { left : parent.left verticalCenter : parent.verticalCenter } width : contentWidth - color : textColor + color : _valueItem.textColor font { - pixelSize : Fonts.fontPixelButton - weight : Font.Medium + pixelSize : 23 + weight : Font.Medium } } + Text { id: _unit + anchors { + left : _label.right + leftMargin : 5 + baseline : _label.baseline + } + width : contentWidth + text : ("(%1) :").arg(Variables.unitVolume) + color : _valueItem.textColor + font { + pixelSize : 20 + } + } + Text { id: _value anchors{ - left : _label.right - verticalCenter : parent.verticalCenter + left : _unit.right + leftMargin : 5 + baseline : _label.baseline } - width : contentWidth - color : textColor + width : 60 + horizontalAlignment : Text.AlignLeft + color : _valueItem.textColor font { pixelSize : Fonts.fontPixelUltrafiltrationAdjustmentMetrics weight : Font.DemiBold @@ -85,7 +102,7 @@ horizontalCenterOffset : -(width + Variables.columnSpacing)/2 verticalCenter : parent.verticalCenter } - label : qsTr("UF Volume Removed: ") + label : qsTr("UF Volume Removed") value : _root.volumeRemoved.toFixed(Variables.ultrafiltrationPrecision) } @@ -95,8 +112,8 @@ horizontalCenterOffset : -(_ufVolumeRemovedItem.anchors.horizontalCenterOffset) verticalCenter : parent.verticalCenter } - textColor : Colors.ufVolumeGoalText - label : qsTr("UF Volume Goal: ") - value : _root.setVolume.toFixed(Variables.ultrafiltrationPrecision) + textColor : _root.volumeRemovedColor + label : qsTr("UF Volume Goal") + value : _root.setVolume.toFixed(Variables.ultrafiltrationPrecision) } }