diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-22 11:42:37 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-22 11:42:37 +0700 |
commit | 6a07c4d1ebbd20fe5ce8c39d2b2fbfc092790158 (patch) | |
tree | 349fe9f37af23c667be4002053b932dbb673ed6c | |
parent | ba351056a1851523334b608c4965b4b568910585 (diff) |
put googleButton and emailButton into RowLayout
-rw-r--r-- | LoginForm.ui.qml | 114 |
1 files changed, 50 insertions, 64 deletions
diff --git a/LoginForm.ui.qml b/LoginForm.ui.qml index 5b04db8..4206c1a 100644 --- a/LoginForm.ui.qml +++ b/LoginForm.ui.qml @@ -11,70 +11,64 @@ Rectangle { property alias emailButton: emailButton RowLayout { - x: 34 - y: 419 - width: googleButton.width - height: googleButton.height - anchors.horizontalCenterOffset: 0 anchors.horizontalCenter: parent.horizontalCenter - } - - Button { - id: googleButton - text: qsTr("Continue with Button") - y: 419 - height: 36 - - anchors.right: parent.right - anchors.rightMargin: 16 anchors.left: parent.left + anchors.right: parent.right anchors.leftMargin: 16 + anchors.rightMargin: 16 + anchors.bottom: disclaimer.top anchors.bottomMargin: 16 - anchors.bottom: emailButton.top - contentItem: Text { - text: googleButton.text - color: "#FFF" - font.pointSize: 14 - font.family: "Google Sans" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight - } - background: Rectangle { - opacity: enabled ? 1.0 : 0.3 - color: googleButton.down ? "#6d22e9" : "#4F12DA" - radius: 6 + Button { + id: emailButton + text: qsTr("Continue with E-Mail") + height: 36 + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + + contentItem: Text { + text: emailButton.text + color: "#6d22e9" + font.pointSize: 14 + font.family: "Google Sans" + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight + } + background: Rectangle { + color: "#fff" + border.color: "#6d22e9" + border.width: 1 + radius: 6 + } } - } - Button { - id: emailButton - text: qsTr("Continue with E-Mail") - x: 41 - y: 516 - height: 36 - anchors.left: parent.left - anchors.leftMargin: 16 - anchors.bottom: disclaimer.top - anchors.bottomMargin: 16 - anchors.right: parent.right - anchors.rightMargin: 16 + Button { + id: googleButton + text: qsTr("Continue with Button") + y: 419 + height: 36 - contentItem: Text { - text: emailButton.text - color: "#6d22e9" - font.pointSize: 14 - font.family: "Google Sans" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight - } - background: Rectangle { - color: "#fff" - border.color: "#6d22e9" - border.width: 1 - radius: 6 + anchors.right: parent.right + anchors.left: parent.left + anchors.bottom: emailButton.top + anchors.bottomMargin: 16 + + contentItem: Text { + text: googleButton.text + color: "#FFF" + font.pointSize: 14 + font.family: "Google Sans" + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight + } + background: Rectangle { + opacity: enabled ? 1.0 : 0.3 + color: googleButton.down ? "#6d22e9" : "#4F12DA" + radius: 6 + } } } @@ -109,11 +103,3 @@ Rectangle { source: "kelakon-logo.png" } } - - - - -/*##^## Designer { - D{i:9;anchors_width:100;anchors_x:139;anchors_y:93} -} - ##^##*/ |