Index: sources/gui/qml/components/NotificationBarSmall.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8 --- sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8) @@ -28,10 +28,13 @@ property alias imageSource : _image.source property bool imageAutoSize : false property bool imageAnimated : false + property int imageDiameter : Variables.notificationIconDiameter + property int imageTopMargin : 0 property alias text : _text.text property alias textColor : _text.color property alias textfontSize : _text.font.pixelSize + property alias textfontWeight : _text.font.weight property alias rowAnchors : _row.anchors property int level : 0 @@ -51,11 +54,11 @@ anchors.centerIn: parent spacing: 10 Image { id: _image - width : source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconDiameter - height: source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconDiameter + 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.top : imageAutoSize ? undefined : parent.top - anchors.topMargin : height > _root.height ? -((height - _root.height) / 2) : 0 + anchors.topMargin : height > _root.height ? -((height - _root.height) / 2) : imageTopMargin } Text { id: _text color : Colors.textNotificationNoneFg