Index: sources/gui/qml/components/UltrafiltrationButton.qml =================================================================== diff -u -r670f257c9b88d3e5506eccaad111bec914102a72 -ra09afcb23e479527eb2263474003b63955cd0e99 --- sources/gui/qml/components/UltrafiltrationButton.qml (.../UltrafiltrationButton.qml) (revision 670f257c9b88d3e5506eccaad111bec914102a72) +++ sources/gui/qml/components/UltrafiltrationButton.qml (.../UltrafiltrationButton.qml) (revision a09afcb23e479527eb2263474003b63955cd0e99) @@ -33,12 +33,18 @@ property string title : "" property string description : "" + property string valueText : "" + property color textColor : "white" property int buttonType : UltrafiltrationButton.ButtonType.UltrafiltrationRate property bool isIncrease : true property bool selected : false property bool disabled : false + readonly property int leftMargin : 35 + readonly property int rightMargin : 28 + + signal clicked() width : Variables.ultrafiltrationAdjustmtenOptionWidth @@ -73,20 +79,43 @@ top : parent.top topMargin : 85 left : parent.left - leftMargin: 35 + leftMargin: leftMargin } } ImageWave { id: _diffImageWave visible : buttonType === UltrafiltrationButton.ButtonType.UltrafiltrationRate - isIncrease : true + isIncrease : _root.isIncrease + anchors { + right : _root.right + bottom : _root.bottom + margins : _root.rightMargin + } } ImageClock { id: _diffImageClock visible : buttonType === UltrafiltrationButton.ButtonType.TreatmentDuration - isIncrease : true + isIncrease : _root.isIncrease + anchors { + right : _root.right + bottom : _root.bottom + margins : _root.rightMargin + } } + Text { id: _textValue + visible : !disabled + text : valueText + font.pixelSize: 26 + color : disabled ? Colors.textDisableButton : Colors.textValueUltrafiltrationButtonFg + anchors { + left : _root.left + bottom : _root.bottom + leftMargin : _root. leftMargin + bottomMargin: _root.rightMargin + } + } + MouseArea { id: _mouseArea anchors.fill: parent onClicked: {