mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-25 15:58:16 +00:00
fix(ui/modules/Linphone/Notifications/NotificationNewVersionAvailable): use a correct style
This commit is contained in:
parent
de6f486a41
commit
f0edd36f22
2 changed files with 15 additions and 24 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue