Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -r909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd -ra159e12630645a9a35fb0a5585cc7b639cfe6aa6 --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision a159e12630645a9a35fb0a5585cc7b639cfe6aa6) @@ -21,27 +21,43 @@ import "qrc:/globals" Rectangle { id: _root - objectName: "NotificationBar" - property alias text : _text.text - property int level : 0 + objectName: "NotificationBar" // SquishQt + property alias imageSource : _image.source + property bool imageAutoSize : false + property alias text : _text.text + property alias textColor : _text.color + property alias textfontSize : _text.font.pixelSize + property alias rowAnchors : _row.anchors + + property int level : 0 + + visible : _text.text height : Variables.notificationHeight color : Colors.textNotificationNoneBg - radius : Variables.dialogRadius + //radius : Variables.dialogRadius anchors { bottom : parent.bottom left : parent.left right : parent.right } - Text { id: _text - color : Colors.textNotificationNoneFg - anchors.fill : parent - font.pixelSize : Fonts.fontPixelNotification - horizontalAlignment : Text.AlignHCenter - verticalAlignment : Text.AlignVCenter + Row { id: _row + anchors.centerIn: parent + spacing: 10 + Image { id: _image + anchors.verticalCenter: parent.verticalCenter + width : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconSize + height: imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconSize + } + Text { id: _text + color : Colors.textNotificationNoneFg + font.pixelSize : Fonts.fontPixelNotification + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + } } onLevelChanged: {