diff --git a/linphone-desktop/ui/modules/Linphone/Notifications/NotificationNewVersionAvailable.qml b/linphone-desktop/ui/modules/Linphone/Notifications/NotificationNewVersionAvailable.qml index a93c3db77..d4abaafd5 100644 --- a/linphone-desktop/ui/modules/Linphone/Notifications/NotificationNewVersionAvailable.qml +++ b/linphone-desktop/ui/modules/Linphone/Notifications/NotificationNewVersionAvailable.qml @@ -37,32 +37,25 @@ Notification { rightMargin: NotificationNewVersionAvailableStyle.rightMargin } - sourceComponent: RowLayout { + sourceComponent: Text { anchors.fill: parent - spacing: NotificationNewVersionAvailableStyle.spacing - Text { - Layout.fillWidth: true - Layout.fillHeight: true + color: NotificationNewVersionAvailableStyle.message.color + font.pointSize: NotificationNewVersionAvailableStyle.message.pointSize + text: notificationData.message + verticalAlignment: Text.AlignVCenter + wrapMode: Text.Wrap - topPadding: NotificationNewVersionAvailableStyle.message.topPadding - color: NotificationNewVersionAvailableStyle.message.color - elide: Text.ElideRight - wrapMode: Text.Wrap - font.pointSize: NotificationNewVersionAvailableStyle.message.pointSize - text: notificationData.message + MouseArea { + anchors.fill: parent + cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor + hoverEnabled: true + + onClicked: notification._close(function () { + Qt.openUrlExternally(notificationData.url) + }) } } - - MouseArea { - anchors.fill: parent - cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor - hoverEnabled: true - - onClicked: notification._close(function () { - Qt.openUrlExternally(notificationData.url) - }) - } } } } diff --git a/linphone-desktop/ui/modules/Linphone/Styles/Notifications/NotificationNewVersionAvailableStyle.qml b/linphone-desktop/ui/modules/Linphone/Styles/Notifications/NotificationNewVersionAvailableStyle.qml index 7864be284..df19d3eb9 100644 --- a/linphone-desktop/ui/modules/Linphone/Styles/Notifications/NotificationNewVersionAvailableStyle.qml +++ b/linphone-desktop/ui/modules/Linphone/Styles/Notifications/NotificationNewVersionAvailableStyle.qml @@ -10,14 +10,12 @@ QtObject { property color color: Colors.k property int height: 55 property int iconSize: 40 - property int leftMargin: 25 + property int leftMargin: 30 property int rightMargin: 15 - property int spacing: 10 property int width: 300 property QtObject message: QtObject { property color color: Colors.h property int pointSize: Units.dp * 10 - property int topPadding: 10 } }