From 38f58c78c64fd7c7d555976306c2a9b6f5e6df5a Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Thu, 22 Aug 2019 20:46:02 +0700 Subject: changed rowLayout to columnLayout --- LoginForm.ui.qml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/LoginForm.ui.qml b/LoginForm.ui.qml index beb72a0..36d2d2f 100644 --- a/LoginForm.ui.qml +++ b/LoginForm.ui.qml @@ -10,7 +10,7 @@ Rectangle { property alias googleButton: googleButton property alias emailButton: emailButton - RowLayout { + ColumnLayout { anchors.right: parent.right anchors.rightMargin: 16 anchors.left: parent.left @@ -20,14 +20,14 @@ Rectangle { spacing: 16 Button { - id: emailButton - text: qsTr("Continue with E-Mail") + id: googleButton + text: qsTr("Continue with Google") height: 36 Layout.fillWidth: true contentItem: Text { - text: emailButton.text - color: "#6d22e9" + text: googleButton.text + color: "#FFF" font.pointSize: 14 font.family: "Google Sans" horizontalAlignment: Text.AlignHCenter @@ -35,23 +35,21 @@ Rectangle { elide: Text.ElideRight } background: Rectangle { - opacity: enabled ? 0.3 : 1 - color: emailButton.down ? "#6d22e9" : "#ffffff" - border.color: "#6d22e9" - border.width: 1 + opacity: enabled ? 1.0 : 0.3 + color: googleButton.down ? "#6d22e9" : "#4F12DA" radius: 6 } } Button { - id: googleButton - text: qsTr("Continue with Google") + id: emailButton + text: qsTr("Continue with E-Mail") height: 36 Layout.fillWidth: true contentItem: Text { - text: googleButton.text - color: "#FFF" + text: emailButton.text + color: "#6d22e9" font.pointSize: 14 font.family: "Google Sans" horizontalAlignment: Text.AlignHCenter @@ -59,8 +57,10 @@ Rectangle { elide: Text.ElideRight } background: Rectangle { - opacity: enabled ? 1.0 : 0.3 - color: googleButton.down ? "#6d22e9" : "#4F12DA" + opacity: enabled ? 0.3 : 1 + color: emailButton.down ? "#6d22e9" : "#ffffff" + border.color: "#6d22e9" + border.width: 1 radius: 6 } } -- cgit v1.2.3