Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -r909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd -r17f0906011de9c97c0950c1ba0ea627a1411bc2e --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 909090c5bae8b2fcc9aed6c2b55078b4f3d26fdd) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 17f0906011de9c97c0950c1ba0ea627a1411bc2e) @@ -21,10 +21,13 @@ import "qrc:/globals" Rectangle { id: _root - objectName: "NotificationBar" + objectName: "NotificationBar" // SquishQt + + property alias imageSource : _image.source property alias text : _text.text property int level : 0 + visible : _text.text height : Variables.notificationHeight @@ -36,14 +39,21 @@ right : parent.right } - Text { id: _text - color : Colors.textNotificationNoneFg - anchors.fill : parent - font.pixelSize : Fonts.fontPixelNotification - horizontalAlignment : Text.AlignHCenter - verticalAlignment : Text.AlignVCenter + Row { + anchors.centerIn: parent + spacing: 10 + Image { id: _image + anchors.verticalCenter: parent.verticalCenter + width : Variables.notificationIconSize + height: Variables.notificationIconSize + } + Text { id: _text + color : Colors.textNotificationNoneFg + font.pixelSize : Fonts.fontPixelNotification + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + } } - onLevelChanged: { switch (level) { case GuiActions.ALARM_PRIORITY_HIGH: