From 8bf7c362494c32392ea7337e8828de4a5377a93a Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 12 Jan 2025 16:29:48 +0100 Subject: [PATCH] Improve verification method choosing --- src/qml/KeyVerificationDialog.qml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/qml/KeyVerificationDialog.qml b/src/qml/KeyVerificationDialog.qml index 550919291..a5f246ec1 100644 --- a/src/qml/KeyVerificationDialog.qml +++ b/src/qml/KeyVerificationDialog.qml @@ -63,7 +63,7 @@ Kirigami.Page { when: root.session.state === KeyVerificationSession.READY PropertyChanges { target: stateLoader - sourceComponent: emojiVerificationComponent + sourceComponent: chooseVerificationComponent } }, State { @@ -152,15 +152,22 @@ Kirigami.Page { } Component { - id: emojiVerificationComponent - Delegates.RoundedItemDelegate { - id: emojiVerification - text: i18n("Emoji Verification") - contentItem: Delegates.SubtitleContentItem { - subtitle: i18n("Compare a set of emoji on both devices") - itemDelegate: emojiVerification + id: chooseVerificationComponent + Item { + ColumnLayout { + anchors.centerIn: parent + spacing: Kirigami.Units.largeSpacing + QQC2.Label { + text: i18nc("@info", "Choose a verification method to continue") + } + QQC2.Button { + id: emojiVerification + text: i18nc("@action:button", "Emoji Verification") + icon.name: "smiley" + onClicked: root.session.sendStartSas() + Layout.alignment: Qt.AlignHCenter + } } - onClicked: root.session.sendStartSas() } } }