Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -rc71deaab48699cffdf9db816dfac2778d79c2238 -rd1907168ef46faa6de1ada400cad789f8379041f --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision c71deaab48699cffdf9db816dfac2778d79c2238) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision d1907168ef46faa6de1ada400cad789f8379041f) @@ -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.png" : "qrc:/images/bell.png" } + 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.png"