Index: sources/gui/qml/components/NotificationBarSmall.qml =================================================================== diff -u -r0e528e5f706308c7b0e8f22a4d9dbb5b5715db7c -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 0e528e5f706308c7b0e8f22a4d9dbb5b5715db7c) +++ sources/gui/qml/components/NotificationBarSmall.qml (.../NotificationBarSmall.qml) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,15 +1,15 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-2024 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 NotificationBarSmall.qml - * \author (last) Peter Lucia - * \date (last) 25-Jun-2020 - * \author (original) Peter Lucia - * \date (original) 25-Jun-2020 + * \file NotificationBarSmall.qml + * \author (last) Behrouz NematiPour + * \date (last) 21-Jun-2021 + * \author (original) Peter Lucia + * \date (original) 25-Jun-2020 * */ @@ -18,6 +18,7 @@ // Project import Gui.Actions 0.1 + // Qml imports import "qrc:/globals" @@ -35,12 +36,11 @@ property int level : 0 - visible : _text.text height : Variables.notificationHeight color : Colors.textNotificationNoneBg - //radius : Variables.dialogRadius + radius : Variables.dialogRadius anchors { bottom : parent.bottom left : parent.left @@ -51,8 +51,8 @@ anchors.centerIn: parent spacing: 10 Image { id: _image - width : source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconSize - height: source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconSize + width : source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconDiameter + height: source == "" ? 0 : imageAutoSize ? Math.min(_root.height, _root.width) : Variables.notificationIconDiameter anchors.verticalCenter : imageAutoSize ? parent.verticalCenter : undefined anchors.top : imageAutoSize ? undefined : parent.top anchors.topMargin : height > _root.height ? -((height - _root.height) / 2) : 0