diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-27 17:12:21 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-27 17:12:21 +0700 |
commit | 0a16f8f6822325262ceac51f1847c1ba4bcae773 (patch) | |
tree | ed1521ec4c97bdde228bee89bfe80099e39d7719 /pages/EmailForm.ui.qml | |
parent | 3fd845a90e86c089a310feca52b6516bac9e538d (diff) |
remove passwordTextField & rework on emailTextField
Diffstat (limited to 'pages/EmailForm.ui.qml')
-rw-r--r-- | pages/EmailForm.ui.qml | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/pages/EmailForm.ui.qml b/pages/EmailForm.ui.qml index 5c0581d..1525606 100644 --- a/pages/EmailForm.ui.qml +++ b/pages/EmailForm.ui.qml @@ -10,7 +10,6 @@ Rectangle { border.width: 0 property alias emailTextField: emailTextField - property alias passwordTextField: passwordTextField property alias loginButton: loginButton Label { x: 16 @@ -19,7 +18,7 @@ Rectangle { text: qsTr("Continue with E-Mail") font.weight: Font.Bold wrapMode: Text.WordWrap - anchors.bottom: buttonLayout.top + anchors.bottom: emailTextField.top anchors.bottomMargin: 16 anchors.left: parent.left anchors.leftMargin: 16 @@ -30,35 +29,27 @@ Rectangle { font.pointSize: 34 } - RowLayout { - x: 34 - y: 411 - id: buttonLayout - width: loginButton.width - height: loginButton.height - anchors.bottom: passwordTextField.top - anchors.bottomMargin: 16 - anchors.horizontalCenter: parent.horizontalCenter - - TextField { - id: emailTextField - width: 303 - Layout.fillWidth: true - placeholderText: "E-mail" - } - } - TextField { - id: passwordTextField - x: 34 - y: 468 - width: loginButton.width - height: loginButton.height + id: emailTextField + y: 501 + font.pointSize: 16 anchors.bottom: loginButton.top anchors.bottomMargin: 16 - anchors.horizontalCenter: parent.horizontalCenter - echoMode: TextInput.Password - placeholderText: qsTr("Password") + font.family: "Google Sans" + Layout.fillWidth: true + placeholderText: qsTr("E-mail") + anchors.right: parent.right + anchors.rightMargin: 16 + anchors.left: parent.left + anchors.leftMargin: 16 + Layout.maximumHeight: 56 + + background: Rectangle { + color: emailTextField.enabled ? "#f4f4f4" : "#353637" + anchors.verticalCenter: parent.verticalCenter + implicitHeight: 56 + radius: 6 + } } Button { @@ -92,3 +83,11 @@ Rectangle { } } } + + + + +/*##^## Designer { + D{i:2;anchors_x:16} +} + ##^##*/ |