From 640eaefadef59bbf7c6605ea51283c8aa1833dab Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Thu, 14 Nov 2024 14:49:20 +0100 Subject: [PATCH] fix too long contact name --- .../view/Control/Display/Contact/ContactListView.qml | 1 - .../Popup/Notification/NotificationReceivedCall.qml | 2 ++ Linphone/view/Page/Form/Contact/ContactEdition.qml | 10 ++++++++++ Linphone/view/Page/Main/Contact/ContactPage.qml | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Linphone/view/Control/Display/Contact/ContactListView.qml b/Linphone/view/Control/Display/Contact/ContactListView.qml index 030eae10d..9b47ff313 100644 --- a/Linphone/view/Control/Display/Contact/ContactListView.qml +++ b/Linphone/view/Control/Display/Contact/ContactListView.qml @@ -183,7 +183,6 @@ ListView { anchors.right: parent.right anchors.top: parent.top anchors.bottom: parent.bottom - anchors.verticalCenter: parent.verticalCenter spacing: 16 * DefaultStyle.dp z: 1 Avatar { diff --git a/Linphone/view/Control/Popup/Notification/NotificationReceivedCall.qml b/Linphone/view/Control/Popup/Notification/NotificationReceivedCall.qml index 3964df138..ab6f07094 100644 --- a/Linphone/view/Control/Popup/Notification/NotificationReceivedCall.qml +++ b/Linphone/view/Control/Popup/Notification/NotificationReceivedCall.qml @@ -50,6 +50,8 @@ Notification { ColumnLayout { Text { text: call.core.remoteName + Layout.fillWidth: true + maximumLineCount: 1 color: DefaultStyle.grey_600 font { pixelSize: 20 * DefaultStyle.dp diff --git a/Linphone/view/Page/Form/Contact/ContactEdition.qml b/Linphone/view/Page/Form/Contact/ContactEdition.qml index f422ff3c2..19668e3d2 100644 --- a/Linphone/view/Page/Form/Contact/ContactEdition.qml +++ b/Linphone/view/Page/Form/Contact/ContactEdition.qml @@ -92,12 +92,16 @@ MainRightPanel { iconSize: 17 * DefaultStyle.dp backgroundColor: "transparent" text: qsTr("Ajouter une image") + color: DefaultStyle.main2_700 + textSize: 16 * DefaultStyle.dp + textWeight: 800 * DefaultStyle.dp KeyNavigation.down: editButton.visible ? editButton : givenNameEdit onClicked: fileDialog.open() }, RowLayout { visible: mainItem.contact && mainItem.contact.core.pictureUri.length != 0 Layout.alignment: Qt.AlignHCenter + spacing: 32 * DefaultStyle.dp IconLabelButton { id: editButton Layout.preferredWidth: width @@ -106,6 +110,9 @@ MainRightPanel { iconSize: 17 * DefaultStyle.dp backgroundColor: "transparent" text: qsTr("Modifier") + color: DefaultStyle.main2_700 + textSize: 16 * DefaultStyle.dp + textWeight: 800 * DefaultStyle.dp KeyNavigation.right: removeButton onClicked: fileDialog.open() } @@ -128,6 +135,9 @@ MainRightPanel { iconSource: AppIcons.trashCan backgroundColor: "transparent" text: qsTr("Supprimer") + color: DefaultStyle.main2_700 + textSize: 16 * DefaultStyle.dp + textWeight: 800 * DefaultStyle.dp KeyNavigation.left: editButton onClicked: mainItem.contact.core.pictureUri = "" } diff --git a/Linphone/view/Page/Main/Contact/ContactPage.qml b/Linphone/view/Page/Main/Contact/ContactPage.qml index d34594547..490a8cc03 100644 --- a/Linphone/view/Page/Main/Contact/ContactPage.qml +++ b/Linphone/view/Page/Main/Contact/ContactPage.qml @@ -493,6 +493,8 @@ AbstractMainPage { spacing: 0 Text { text: contactDetail.contactName + Layout.fillWidth: true + maximumLineCount: 1 font { pixelSize: 29 * DefaultStyle.dp weight: 800 * DefaultStyle.dp