summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-15 20:24:25 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-15 20:24:25 +0700
commitbc1956d78c88ef31824a915134f5cdd56fb08914 (patch)
tree419115d5dcfb5432f928fa3dac97a93023b9f2c3 /pages
parent95ec6276814db1f440d10938fa9db98e62a0a237 (diff)
passTextField now RowLayout
Diffstat (limited to 'pages')
-rw-r--r--pages/PasswordForm.ui.qml42
1 files changed, 28 insertions, 14 deletions
diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml
index ac084c1..8936ccd 100644
--- a/pages/PasswordForm.ui.qml
+++ b/pages/PasswordForm.ui.qml
@@ -66,6 +66,7 @@ Rectangle {
RowLayout {
id: userEmail
height: 56
+ anchors.horizontalCenterOffset: 0
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
spacing: 8
@@ -93,24 +94,37 @@ Rectangle {
color: "#99000000"
}
}
-
- TextField {
+ RowLayout {
id: passTextField
- y: 501
- font.pointSize: 16
+ anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: createPassButton.top
anchors.bottomMargin: 16
- font.family: "Google Sans"
- Layout.fillWidth: true
- placeholderText: qsTr("Password")
- anchors.right: parent.right
- anchors.rightMargin: 16
- anchors.left: parent.left
- anchors.leftMargin: 16
- Layout.maximumHeight: 56
- echoMode: TextInput.Password
- }
+ width: parent.width
+ spacing: 8
+ height: 56
+ Image {
+ width: 24
+ height: 24
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ Layout.leftMargin: 16
+ fillMode: Image.PreserveAspectFit
+ source: "../assets/lock-24px.svg"
+ antialiasing: true
+ }
+
+ TextField {
+ Layout.rightMargin: 16
+ Layout.leftMargin: 24
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ font.pointSize: 16
+ anchors.bottomMargin: 16
+ font.family: "Google Sans"
+ Layout.fillWidth: true
+ placeholderText: qsTr("Password")
+ echoMode: TextInput.Password
+ }
+ }
RoundButton {
id: createPassButton
x: 34