Index: sources/gui/qml/components/NotificationBar.qml =================================================================== diff -u -r7c684ec97418a7f4808f6d97235a0666115ae47e -r56e378f7504701b9e9a9dccaf205aef2fd52c58e --- sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 7c684ec97418a7f4808f6d97235a0666115ae47e) +++ sources/gui/qml/components/NotificationBar.qml (.../NotificationBar.qml) (revision 56e378f7504701b9e9a9dccaf205aef2fd52c58e) @@ -1,14 +1,15 @@ /*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. - * \copyright \n - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n - * IN PART OR IN WHOLE, \n - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n + * \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 - * \date 2020/03/30 - * \author Behrouz NematiPour + * \file NotificationBar.qml + * \author (last) Behrouz NemaiPour + * \date (last) 06-Aug-2020 + * \author (original) Behrouz NematiPour + * \date (original) 30-Mar-2020 * */ @@ -29,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) { @@ -37,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 @@ -49,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"