Index: sources/gui/qml/components/NotificationBarSmall.qml =================================================================== diff -u -r7208690c23bf7a801437b86902f2e04d173d659f -r6084f7bd48dc98616b4a5e0d076c2d03330001db --- sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 7208690c23bf7a801437b86902f2e04d173d659f) +++ sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 6084f7bd48dc98616b4a5e0d076c2d03330001db) @@ -25,8 +25,9 @@ Rectangle { id: _root objectName: "NotificationBar" // SquishQt - property alias image : _image property alias imageSource : _image.source + property alias imageFillMode : _image.fillMode + property bool imageVerticalCenter: false property bool imageAutoSize : false property bool imageAnimated : false property int imageDiameter : Variables.notificationIconDiameter @@ -58,7 +59,7 @@ Image { id: _image width : source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : _root.imageDiameter height: source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : _root.imageDiameter - anchors.verticalCenter : imageAutoSize ? parent.verticalCenter : undefined + anchors.verticalCenter : imageAutoSize || imageVerticalCenter ? parent.verticalCenter : undefined anchors.top : imageAutoSize ? undefined : parent.top anchors.topMargin : height > _root.height ? -((height - _root.height) / 2) : imageTopMargin } Index: sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentBase.qml =================================================================== diff -u -r7208690c23bf7a801437b86902f2e04d173d659f -r6084f7bd48dc98616b4a5e0d076c2d03330001db --- sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentBase.qml (.../TreatmentAdjustmentBase.qml) (revision 7208690c23bf7a801437b86902f2e04d173d659f) +++ sources/gui/qml/pages/treatment/adjustments/TreatmentAdjustmentBase.qml (.../TreatmentAdjustmentBase.qml) (revision 6084f7bd48dc98616b4a5e0d076c2d03330001db) @@ -105,13 +105,11 @@ // this meant to be used specifically as current state notification like paused/off in UF // it is also available in TreatmentAdjustmentFlow and TreatmentAdjustmentDuration but not used. NotificationBarSmall { id: _information - visible : false - imageSource : "" - imageDiameter : 26 - text : "" - image { - anchors.verticalCenter : image.parent.verticalCenter - fillMode : Image.PreserveAspectFit - } + visible : false + imageSource : "" + imageDiameter : 26 + imageVerticalCenter : true + imageFillMode : Image.PreserveAspectFit + text : "" } }