diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-22 20:46:02 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-22 20:46:02 +0700 |
commit | 38f58c78c64fd7c7d555976306c2a9b6f5e6df5a (patch) | |
tree | 97ada042ca872580b53d43b8c11595b5139377fe | |
parent | 5d078daaee09c6cf3fd6c61e4ecbc32c31e307c0 (diff) |
changed rowLayout to columnLayout
-rw-r--r-- | LoginForm.ui.qml | 30 |
1 files 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 } } |