Index: sources/gui/qml/components/NotificationBarSmall.qml =================================================================== diff -u -r923377d29fe730c0e2209386479a61b1e8ee1097 -rbf9223700613ced6c377f3e3a7b4de8367c30474 --- sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 923377d29fe730c0e2209386479a61b1e8ee1097) +++ sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision bf9223700613ced6c377f3e3a7b4de8367c30474) @@ -26,6 +26,8 @@ objectName: "NotificationBar" // SquishQt 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 @@ -57,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 } @@ -84,19 +86,19 @@ onLevelChanged: { switch (level) { - case GuiActions.ALARM_PRIORITY_HIGH: + case guiActions.ALARM_PRIORITY_HIGH: _root.color = Colors.textNotificationHighBg; _text.color = Colors.textNotificationHighFg; break; - case GuiActions.ALARM_PRIORITY_MEDIUM: + case guiActions.ALARM_PRIORITY_MEDIUM: _root.color = Colors.textNotificationMedBg; _text.color = Colors.textNotificationMedFg; break; - case GuiActions.ALARM_PRIORITY_LOW: + case guiActions.ALARM_PRIORITY_LOW: _root.color = Colors.textNotificationLowBg; _text.color = Colors.textNotificationLowFg; break; - default : // GuiActions.ALARM_PRIORITY_NONE + default : // guiActions.ALARM_PRIORITY_NONE _root.color = Colors.textNotificationNoneBg; _text.color = Colors.textNotificationNoneFg; break;