From 1e550155aefeb9b51d0659664035cd90033db11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 8 Mar 2023 17:17:36 +0800 Subject: Interfaces for sign in properties that are likely to be customised. --- SignIn.ui.qml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/SignIn.ui.qml b/SignIn.ui.qml index f37f1a8..de2a242 100644 --- a/SignIn.ui.qml +++ b/SignIn.ui.qml @@ -3,6 +3,10 @@ import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 Flickable { + property string titleHeader: qsTr("Login into Eduport!") + property string titleParagraph: qsTr("Nice to see you! Please log in with your account.") + property string emailLabel: qsTr("Email address *") + property string emailImage: "Bootstrap/icons/envelope-fill.svg" property alias email: email property alias password: password property alias button: button @@ -47,8 +51,7 @@ Flickable { id: columnLayout Label { - id: signInTitle - text: qsTr("Login into Eduport!") + text: titleHeader wrapMode: Text.Wrap Layout.fillWidth: true font { @@ -58,9 +61,8 @@ Flickable { } Label { - id: signInSubtitle + text: titleParagraph color: "#6c757d" - text: qsTr("Nice to see you! Please log in with your account.") wrapMode: Text.Wrap Layout.fillWidth: true font { @@ -71,7 +73,7 @@ Flickable { } ColumnLayout { Label { - text: qsTr("Email address *") + text: emailLabel font { pointSize: 15 family: doesntEmbed ? "Roboto" : regular.name @@ -88,12 +90,9 @@ Flickable { RowLayout { anchors.fill: parent Image { - id: envelope - source: "Bootstrap/icons/envelope-fill.svg" - sourceSize { - width: 24 - height: 24 - } + source: emailImage + Layout.maximumHeight: 24 + Layout.maximumWidth: 24 Layout.margins: 16 } TextField { -- cgit v1.2.3