From c1be71191a79f9f8716d60e78e9e7355ef5daa4e Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Tue, 15 Oct 2024 16:46:24 +0200 Subject: [PATCH] fix button alignment --- Linphone/view/Control/Button/Button.qml | 3 ++- Linphone/view/Page/Window/Call/CallsWindow.qml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Linphone/view/Control/Button/Button.qml b/Linphone/view/Control/Button/Button.qml index 2f1f35613..6a762df53 100644 --- a/Linphone/view/Control/Button/Button.qml +++ b/Linphone/view/Control/Button/Button.qml @@ -14,6 +14,7 @@ Control.Button { property bool inversedColors: false property int textSize: 18 * DefaultStyle.dp property int textWeight: 600 * DefaultStyle.dp + property var textHAlignment: Text.AlignHCenter property int radius: 48 * DefaultStyle.dp property color textColor: DefaultStyle.grey_0 property bool underline: activeFocus || containsMouse @@ -78,7 +79,7 @@ Control.Button { } component ButtonText: Text { - horizontalAlignment: Text.AlignHCenter + horizontalAlignment: mainItem.textHAlignment verticalAlignment: Text.AlignVCenter wrapMode: Text.WrapAnywhere text: mainItem.text diff --git a/Linphone/view/Page/Window/Call/CallsWindow.qml b/Linphone/view/Page/Window/Call/CallsWindow.qml index 2ce0c8472..dae436e32 100644 --- a/Linphone/view/Page/Window/Call/CallsWindow.qml +++ b/Linphone/view/Page/Window/Call/CallsWindow.qml @@ -1604,6 +1604,7 @@ AbstractWindow { contentImageColor: down || checked ? DefaultStyle.main1_500_main : DefaultStyle.main2_500main textSize: 14 * DefaultStyle.dp textWeight: 400 * DefaultStyle.dp + textHAlignment: Text.AlignLeft spacing: 5 * DefaultStyle.dp } popup.contentItem: ColumnLayout {