summary refs log tree commit diff
path: root/resources/qml/device-verification/Success.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/device-verification/Success.qml')
-rw-r--r--resources/qml/device-verification/Success.qml47
1 files changed, 20 insertions, 27 deletions
diff --git a/resources/qml/device-verification/Success.qml b/resources/qml/device-verification/Success.qml
index 8d7c8419..d9365194 100644
--- a/resources/qml/device-verification/Success.qml
+++ b/resources/qml/device-verification/Success.qml
@@ -8,40 +8,33 @@ import QtQuick.Controls 2.3
 import QtQuick.Layouts 1.10
 import im.nheko 1.0
 
-Pane {
+ColumnLayout {
     property string title: qsTr("Successful Verification")
-    background: Rectangle {
-        color: Nheko.colors.window
-    }
-
-    ColumnLayout {
-        anchors.fill: parent
-        spacing: 16
 
-        Label {
-            id: content
+    spacing: 16
 
-            Layout.preferredWidth: 400
-            Layout.fillWidth: true
-            wrapMode: Text.Wrap
-            text: qsTr("Verification successful! Both sides verified their devices!")
-            color: Nheko.colors.text
-            verticalAlignment: Text.AlignVCenter
-        }
+    Label {
+        id: content
 
-        Item { Layout.fillHeight: true; }
+        Layout.preferredWidth: 400
+        Layout.fillWidth: true
+        wrapMode: Text.Wrap
+        text: qsTr("Verification successful! Both sides verified their devices!")
+        color: Nheko.colors.text
+        verticalAlignment: Text.AlignVCenter
+    }
 
-        RowLayout {
-            Item {
-                Layout.fillWidth: true
-            }
+    Item { Layout.fillHeight: true; }
 
-            Button {
-                Layout.alignment: Qt.AlignRight
-                text: qsTr("Close")
-                onClicked: dialog.close()
-            }
+    RowLayout {
+        Item {
+            Layout.fillWidth: true
+        }
 
+        Button {
+            Layout.alignment: Qt.AlignRight
+            text: qsTr("Close")
+            onClicked: dialog.close()
         }
 
     }