summaryrefslogtreecommitdiff
path: root/Authentication
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 09:52:23 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-23 09:52:23 +0800
commit9a8c9b16fddd96ec2705f64d7023aedcde71d6e5 (patch)
tree40e2bd47d4d75752354beb9a1c6a808c2b4da194 /Authentication
parent265cb64a4f34298e450b7ea20450434a7762bf7a (diff)
Auth & Shop reuse custom TextField
Diffstat (limited to 'Authentication')
-rw-r--r--Authentication/SignIn.ui.qml21
-rw-r--r--Authentication/SignUp.ui.qml31
2 files changed, 7 insertions, 45 deletions
diff --git a/Authentication/SignIn.ui.qml b/Authentication/SignIn.ui.qml
index cb634a1..f36f61d 100644
--- a/Authentication/SignIn.ui.qml
+++ b/Authentication/SignIn.ui.qml
@@ -4,6 +4,7 @@ import QtQuick.Layouts 1.15
import Bootstrap 5.3
import Eduport 1.4
import "../Label" as Lbl
+import "../TextField" as TxtFld
import "../Button" as BsBtn
Flickable {
@@ -74,19 +75,11 @@ Flickable {
Layout.margins: 16
}
- TextField {
+ TxtFld.Input {
id: email
placeholderText: qsTr("E-mail")
- font {
- family: Bootstrap.bodyFont.family
- weight: Bootstrap.bodyFont.weight
- pointSize: Eduport.formControlFontSize
- }
Layout.fillWidth: true
Layout.fillHeight: true
- background: Rectangle {
- color: "transparent"
- }
}
}
}
@@ -114,20 +107,12 @@ Flickable {
Layout.margins: 16
}
- TextField {
+ TxtFld.Input {
id: password
placeholderText: qsTr("password")
echoMode: TextInput.Password
- font {
- family: Bootstrap.bodyFont.family
- weight: Bootstrap.bodyFont.weight
- pointSize: Eduport.formControlFontSize
- }
Layout.fillWidth: true
Layout.fillHeight: true
- background: Rectangle {
- color: "transparent"
- }
}
}
}
diff --git a/Authentication/SignUp.ui.qml b/Authentication/SignUp.ui.qml
index 8367fbf..683ee7b 100644
--- a/Authentication/SignUp.ui.qml
+++ b/Authentication/SignUp.ui.qml
@@ -4,6 +4,7 @@ import QtQuick.Layouts 1.15
import Bootstrap 5.3
import Eduport 1.4
import "../Label" as Lbl
+import "../TextField" as TxtFld
import "../Button" as BsBtn
Flickable {
@@ -77,19 +78,11 @@ Flickable {
Layout.margins: 16
}
- TextField {
+ TxtFld.Input {
id: email
placeholderText: qsTr("E-mail")
- font {
- family: Bootstrap.bodyFont.family
- weight: Bootstrap.bodyFont.weight
- pointSize: Eduport.formControlFontSize
- }
Layout.fillWidth: true
Layout.fillHeight: true
- background: Rectangle {
- color: "transparent"
- }
}
}
}
@@ -118,20 +111,12 @@ Flickable {
Layout.margins: 16
}
- TextField {
+ TxtFld.Input {
id: password
placeholderText: "*********"
echoMode: TextInput.Password
- font {
- family: Bootstrap.bodyFont.family
- weight: Bootstrap.bodyFont.weight
- pointSize: Eduport.formControlFontSize
- }
Layout.fillWidth: true
Layout.fillHeight: true
- background: Rectangle {
- color: "transparent"
- }
}
}
}
@@ -160,20 +145,12 @@ Flickable {
Layout.margins: 16
}
- TextField {
+ TxtFld.Input {
id: confirmPassword
placeholderText: "*********"
echoMode: TextInput.Password
- font {
- family: Bootstrap.bodyFont.family
- weight: Bootstrap.bodyFont.weight
- pointSize: Eduport.formControlFontSize
- }
Layout.fillWidth: true
Layout.fillHeight: true
- background: Rectangle {
- color: "transparent"
- }
}
}
}