mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +02:00
New UI for new HFC users
This commit is contained in:
parent
cc98eb6424
commit
fe515e949b
2 changed files with 40 additions and 15 deletions
|
@ -310,7 +310,7 @@ Item {
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
|
|
||||||
HifiControlsUit.Separator {
|
HifiControlsUit.Separator {
|
||||||
colorScheme: 1;
|
colorScheme: 1;
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.left;
|
||||||
anchors.right: parent.right;
|
anchors.right: parent.right;
|
||||||
anchors.top: parent.top;
|
anchors.top: parent.top;
|
||||||
|
@ -318,20 +318,42 @@ Item {
|
||||||
|
|
||||||
RalewayRegular {
|
RalewayRegular {
|
||||||
id: noActivityText;
|
id: noActivityText;
|
||||||
text: "To <b>receive free HFC</b>, please go to " +
|
text: "Congrats! Your wallet is all set!<br><br>" +
|
||||||
'<a href="hifi://BankOfHighFidelity/415.049,5.55924,-254.583/0,0.995213,0,0.0977305">BankOfHighFidelity</a>';
|
"<b>Where's my HFC?</b><br>" +
|
||||||
// Text size
|
"High Fidelity commerce is in open beta right now. Want more HFC? Get it by meeting with a banker at " +
|
||||||
size: 24;
|
"<a href='#goToBank'>BankOfHighFidelity</a>!"
|
||||||
// Style
|
// Text size
|
||||||
color: hifi.colors.blueAccent;
|
size: 22;
|
||||||
anchors.left: parent.left;
|
// Style
|
||||||
anchors.leftMargin: 12;
|
color: hifi.colors.blueAccent;
|
||||||
anchors.right: parent.right;
|
anchors.top: parent.top;
|
||||||
anchors.rightMargin: 12;
|
anchors.topMargin: 36;
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
anchors.left: parent.left;
|
||||||
height: paintedHeight;
|
anchors.leftMargin: 12;
|
||||||
wrapMode: Text.WordWrap;
|
anchors.right: parent.right;
|
||||||
horizontalAlignment: Text.AlignHCenter;
|
anchors.rightMargin: 12;
|
||||||
|
height: paintedHeight;
|
||||||
|
wrapMode: Text.WordWrap;
|
||||||
|
horizontalAlignment: Text.AlignHCenter;
|
||||||
|
|
||||||
|
onLinkActivated: {
|
||||||
|
sendSignalToWallet({ method: "transactionHistory_goToBank" });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HifiControlsUit.Button {
|
||||||
|
id: bankButton;
|
||||||
|
color: hifi.buttons.blue;
|
||||||
|
colorScheme: hifi.colorSchemes.dark;
|
||||||
|
anchors.top: noActivityText.bottom;
|
||||||
|
anchors.topMargin: 30;
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
|
width: parent.width/2;
|
||||||
|
height: 50;
|
||||||
|
text: "VISIT BANK OF HIGH FIDELITY";
|
||||||
|
onClicked: {
|
||||||
|
sendSignalToWallet({ method: "transactionHistory_goToBank" });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -688,6 +688,9 @@
|
||||||
updateSendMoneyParticleEffect();
|
updateSendMoneyParticleEffect();
|
||||||
sendMoneyParticleEffectUpdateTimer = Script.setInterval(updateSendMoneyParticleEffect, SEND_MONEY_PARTICLE_TIMER_UPDATE);
|
sendMoneyParticleEffectUpdateTimer = Script.setInterval(updateSendMoneyParticleEffect, SEND_MONEY_PARTICLE_TIMER_UPDATE);
|
||||||
break;
|
break;
|
||||||
|
case 'transactionHistory_goToBank':
|
||||||
|
Window.location = "hifi://BankOfHighFidelity";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
print('Unrecognized message from QML:', JSON.stringify(message));
|
print('Unrecognized message from QML:', JSON.stringify(message));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue