From 2bd5c8a16191b3dfb29966127abd45ab9b6dbf59 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 4 Oct 2024 15:49:23 +0200 Subject: [PATCH] Fix quote in "supprimer l'historique" text Cosmetics on the button --- Linphone/view/Page/Main/Call/CallPage.qml | 39 ++++++++--------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/Linphone/view/Page/Main/Call/CallPage.qml b/Linphone/view/Page/Main/Call/CallPage.qml index 3c9dc0ded..036ebe1d3 100644 --- a/Linphone/view/Page/Main/Call/CallPage.qml +++ b/Linphone/view/Page/Main/Call/CallPage.qml @@ -150,35 +150,22 @@ AbstractMainPage { height: 24 * DefaultStyle.dp focus: true popup.x: 0 - popup.padding: 10 * DefaultStyle.dp + popup.padding: 20 * DefaultStyle.dp KeyNavigation.right: newCallButton KeyNavigation.down: listStackView - popup.contentItem: Button { - color: removeHistory.popupBackgroundColor - borderColor: removeHistory.popupBackgroundColor - inversedColors: true - contentItem: RowLayout { - EffectImage { - imageSource: AppIcons.trashCan - width: 24 * DefaultStyle.dp - height: 24 * DefaultStyle.dp - Layout.preferredWidth: 24 * DefaultStyle.dp - Layout.preferredHeight: 24 * DefaultStyle.dp - fillMode: Image.PreserveAspectFit - colorizationColor: DefaultStyle.danger_500main + popup.contentItem: ColumnLayout { + IconLabelButton { + Layout.preferredHeight: 24 * DefaultStyle.dp + Layout.fillWidth: true + focus: visible + iconSize: 24 * DefaultStyle.dp + text: qsTr("Supprimer l'historique") + iconSource: AppIcons.trashCan + color: DefaultStyle.danger_500main + onClicked: { + removeHistory.close() + deleteHistoryPopup.open() } - Text { - text: qsTr("Supprimer l’historique") - color: DefaultStyle.danger_500main - font { - pixelSize: 14 * DefaultStyle.dp - weight: 400 * DefaultStyle.dp - } - } - } - onClicked: { - removeHistory.close() - deleteHistoryPopup.open() } } Connections {