SignIn screen tweaks
- Put the server field after user & pass, it makes more sense to have the default focused field at the start - Hide the currently unimplemented login method selection - Rename Recovery tab to Reset (shorter)
This commit is contained in:
parent
f5fde35482
commit
b267ef6562
|
@ -5,7 +5,7 @@ import "../../Base"
|
|||
HPage {
|
||||
HTabbedBoxes {
|
||||
tabModel: [
|
||||
qsTr("Sign in"), qsTr("Register"), qsTr("Recovery"),
|
||||
qsTr("Sign in"), qsTr("Register"), qsTr("Reset"),
|
||||
]
|
||||
|
||||
SignIn { Component.onCompleted: forceActiveFocus() }
|
||||
|
|
|
@ -103,6 +103,7 @@ HBox {
|
|||
}
|
||||
|
||||
HRowLayout {
|
||||
visible: false // TODO
|
||||
spacing: theme.spacing * 1.25
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
|
@ -123,6 +124,25 @@ HBox {
|
|||
}
|
||||
}
|
||||
|
||||
HTextField {
|
||||
id: idField
|
||||
placeholderText: qsTr(
|
||||
signInWith === "email" ? "Email" :
|
||||
signInWith === "phone" ? "Phone" :
|
||||
"Username"
|
||||
)
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
HTextField {
|
||||
id: passwordField
|
||||
placeholderText: qsTr("Password")
|
||||
echoMode: HTextField.Password
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
HTextField {
|
||||
id: serverField
|
||||
placeholderText: qsTr("Homeserver URL")
|
||||
|
@ -156,25 +176,6 @@ HBox {
|
|||
knownServers.includes(cleanText)
|
||||
}
|
||||
|
||||
HTextField {
|
||||
id: idField
|
||||
placeholderText: qsTr(
|
||||
signInWith === "email" ? "Email" :
|
||||
signInWith === "phone" ? "Phone" :
|
||||
"Username"
|
||||
)
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
HTextField {
|
||||
id: passwordField
|
||||
placeholderText: qsTr("Password")
|
||||
echoMode: HTextField.Password
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
HCheckBox {
|
||||
id: rememberAccount
|
||||
text: qsTr("Remember my account")
|
||||
|
|
Loading…
Reference in New Issue
Block a user