Commit f0edd36f authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Notifications/NotificationNewVersionAvailable): use a correct style

parent de6f486a
...@@ -37,31 +37,24 @@ Notification { ...@@ -37,31 +37,24 @@ Notification {
rightMargin: NotificationNewVersionAvailableStyle.rightMargin rightMargin: NotificationNewVersionAvailableStyle.rightMargin
} }
sourceComponent: RowLayout { sourceComponent: Text {
anchors.fill: parent anchors.fill: parent
spacing: NotificationNewVersionAvailableStyle.spacing
Text { color: NotificationNewVersionAvailableStyle.message.color
Layout.fillWidth: true font.pointSize: NotificationNewVersionAvailableStyle.message.pointSize
Layout.fillHeight: true text: notificationData.message
verticalAlignment: Text.AlignVCenter
wrapMode: Text.Wrap
topPadding: NotificationNewVersionAvailableStyle.message.topPadding MouseArea {
color: NotificationNewVersionAvailableStyle.message.color anchors.fill: parent
elide: Text.ElideRight cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor
wrapMode: Text.Wrap hoverEnabled: true
font.pointSize: NotificationNewVersionAvailableStyle.message.pointSize
text: notificationData.message
}
}
MouseArea { onClicked: notification._close(function () {
anchors.fill: parent Qt.openUrlExternally(notificationData.url)
cursorShape: containsMouse ? Qt.PointingHandCursor : Qt.ArrowCursor })
hoverEnabled: true }
onClicked: notification._close(function () {
Qt.openUrlExternally(notificationData.url)
})
} }
} }
} }
......
...@@ -10,14 +10,12 @@ QtObject { ...@@ -10,14 +10,12 @@ QtObject {
property color color: Colors.k property color color: Colors.k
property int height: 55 property int height: 55
property int iconSize: 40 property int iconSize: 40
property int leftMargin: 25 property int leftMargin: 30
property int rightMargin: 15 property int rightMargin: 15
property int spacing: 10
property int width: 300 property int width: 300
property QtObject message: QtObject { property QtObject message: QtObject {
property color color: Colors.h property color color: Colors.h
property int pointSize: Units.dp * 10 property int pointSize: Units.dp * 10
property int topPadding: 10
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment