From b10a21f0719ee39096e0b618627fb58f8dba06d2 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 28 Aug 2019 14:24:05 +0700 Subject: remove unused Rectangle height and width --- pages/PasswordForm.ui.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pages/PasswordForm.ui.qml') diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml index 5a5875e..918c5ca 100644 --- a/pages/PasswordForm.ui.qml +++ b/pages/PasswordForm.ui.qml @@ -4,8 +4,6 @@ import QtQuick.Controls 2.12 Rectangle { id: rectangle - width: 363 - height: 628 color: "#fff" border.width: 0 @@ -114,3 +112,8 @@ Rectangle { } } } + +/*##^## Designer { + D{i:0;autoSize:true;height:480;width:640} +} + ##^##*/ -- cgit v1.2.3 From 59e170cad2ecdb177f31f66ea4782f0b3bde50f4 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 28 Aug 2019 14:36:57 +0700 Subject: add backButton on PaswordForm --- pages/PasswordForm.ui.qml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'pages/PasswordForm.ui.qml') diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml index 918c5ca..f3ee37b 100644 --- a/pages/PasswordForm.ui.qml +++ b/pages/PasswordForm.ui.qml @@ -21,18 +21,20 @@ Rectangle { anchors.left: parent.left anchors.leftMargin: 0 - Rectangle { - id: navIconBg - width: 24 - height: 24 - anchors.left: parent.left - anchors.leftMargin: 16 + Button { + id: backButton anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: 8 + display: AbstractButton.IconOnly + icon.name: "back-icon" + icon.source: "/assets/arrow-back-24px.svg" + icon.color: "transparent" - Button { - id: backButton - display: AbstractButton.IconOnly - anchors.fill: parent + background: Rectangle { + opacity: enabled ? 1.0 : 0.3 + color: backButton.down ? "#ddd" : "#fff" + radius: 6 } } } -- cgit v1.2.3