modifying location of links for user/pw

This commit is contained in:
Wayne Chen 2018-09-06 00:07:23 -07:00
parent 6d055ba136
commit 3f1eba418d

View file

@ -116,7 +116,6 @@ Item {
}
spacing: 2 * hifi.dimensions.contentSpacing.y
TextField {
id: usernameField
text: Settings.getValue("wallet/savedUsername", "");
@ -125,28 +124,25 @@ Item {
placeholderText: "Username or Email"
activeFocusOnPress: true
ShortcutText {
z: 10
anchors {
left: usernameField.right
top: usernameField.bottom
leftMargin: usernameField.textFieldLabel.contentWidth + 10
topMargin: -19
}
text: "<a href='https://highfidelity.com/users/password/new'>Forgot Username?</a>"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
linkColor: hifi.colors.blueAccent
onLinkActivated: loginDialog.openUrl(link)
}
onFocusChanged: {
root.text = "";
}
}
ShortcutText {
z: 10
anchors {
leftMargin: usernameField.textFieldLabel.contentWidth + 10
topMargin: -19
}
text: "<a href='https://highfidelity.com/users/password/new'>Forgot Username?</a>"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignRight
linkColor: hifi.colors.blueAccent
onLinkActivated: loginDialog.openUrl(link)
}
TextField {
id: passwordField
@ -154,24 +150,6 @@ Item {
placeholderText: "Password"
activeFocusOnPress: true
ShortcutText {
z: 10
anchors {
left: passwordField.right
top: passwordField.bottom
leftMargin: passwordField.textFieldLabel.contentWidth + 10
topMargin: -19
}
text: "<a href='https://highfidelity.com/users/password/new'>Forgot Password?</a>"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
linkColor: hifi.colors.blueAccent
onLinkActivated: loginDialog.openUrl(link)
}
onFocusChanged: {
root.text = "";
root.isPassword = true;
@ -207,6 +185,22 @@ Item {
Keys.onReturnPressed: linkAccountBody.login()
}
ShortcutText {
z: 10
anchors {
leftMargin: passwordField.textFieldLabel.contentWidth + 10
topMargin: -19
}
text: "<a href='https://highfidelity.com/users/password/new'>Forgot Password?</a>"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
linkColor: hifi.colors.blueAccent
onLinkActivated: loginDialog.openUrl(link)
}
InfoItem {
id: additionalInformation