Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -r6d62bbaca6363f7ff83715f78607cb60a4736771 -r255df1f61af0193b8f2f9630bdf3ce68be0f5e29 --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 6d62bbaca6363f7ff83715f78607cb60a4736771) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 255df1f61af0193b8f2f9630bdf3ce68be0f5e29) @@ -14,6 +14,7 @@ // Qt import QtQuick 2.12 +import QtGraphicalEffects 1.12 // Project import Gui.Actions 0.1 @@ -22,9 +23,11 @@ Rectangle { id: _root objectName: "NotificationBar" - property alias text : _text.text; - property alias textColor : _text.color; - property int level : 0; + property alias text : _text.text; + property alias textColor : _text.color; + property int level : 0; + property bool isSilenced : false; + property color backgroundColor : Colors.textNotificationNoneBg; visible : _text.text @@ -37,9 +40,28 @@ right : parent.right } + Image { + id: _icon + source: "qrc:/images/alarm.svg" + anchors.right: _text.left + anchors.rightMargin: Variables.notificationBarIconMargin; + anchors.verticalCenter: parent.verticalCenter; + sourceSize.height: Variables.notificationBarIconHeight; + sourceSize.width: Variables.notificationBarIconWidth; + } + + ColorOverlay { + id: _icon_overlay + anchors.fill: _icon; + source: _icon; + color: _root.backgroundColor; + cached: true; + antialiasing: true; + } + Text { id: _text color : Colors.textNotificationNoneFg - anchors.fill : parent + anchors.centerIn : parent font.pixelSize : Fonts.fontPixelNotification horizontalAlignment : Text.AlignHCenter verticalAlignment : Text.AlignVCenter