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 spacing: 2 * hifi.dimensions.contentSpacing.y
TextField { TextField {
id: usernameField id: usernameField
text: Settings.getValue("wallet/savedUsername", ""); text: Settings.getValue("wallet/savedUsername", "");
@ -125,28 +124,25 @@ Item {
placeholderText: "Username or Email" placeholderText: "Username or Email"
activeFocusOnPress: true 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: { onFocusChanged: {
root.text = ""; 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 { TextField {
id: passwordField id: passwordField
@ -154,24 +150,6 @@ Item {
placeholderText: "Password" placeholderText: "Password"
activeFocusOnPress: true 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: { onFocusChanged: {
root.text = ""; root.text = "";
root.isPassword = true; root.isPassword = true;
@ -207,6 +185,22 @@ Item {
Keys.onReturnPressed: linkAccountBody.login() 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 { InfoItem {
id: additionalInformation id: additionalInformation