Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -r44a85c96ab55e424866ec4cca0270aa218355f82 -rbf645acccabb7b5a84801620c4f7fa0b0e6878e0 --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 44a85c96ab55e424866ec4cca0270aa218355f82) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision bf645acccabb7b5a84801620c4f7fa0b0e6878e0) @@ -1,16 +1,16 @@ /*! - * + * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. - * + * * \file NotificationBar.qml * \author (last) Peter Lucia * \date (last) 01-Jul-2020 * \author (original) Behrouz NematiPour * \date (original) 30-Mar-2020 - * + * */ // Qt @@ -30,6 +30,16 @@ property int muteTimeoutSec : 0 property color backgroundColor : Colors.textNotificationNoneBg + visible : _text.text + height : Variables.notificationHeight + color : Colors.textNotificationNoneBg + //radius : Variables.dialogRadius + anchors { + bottom : parent.bottom + left : parent.left + right : parent.right + } + signal clickedNotificationBar() function toggleSilence(silence, timeoutSec) { @@ -38,6 +48,10 @@ _bell.source = isSilenced ? "qrc:/images/bell-off.svg" : "qrc:/images/bell.svg" } + function setFlashing(enable) { + _timer.running = enable; + } + // Placeholder animation Timer { id: _timer @@ -50,21 +64,6 @@ } } - function setFlashing(enable) { - _timer.running = enable; - } - - visible : _text.text - - height : Variables.notificationHeight - color : Colors.textNotificationNoneBg - //radius : Variables.dialogRadius - anchors { - bottom : parent.bottom - left : parent.left - right : parent.right - } - Image { id: _icon source: "qrc:/images/alarm.svg"