mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:36:38 +02:00
Filling out home
This commit is contained in:
parent
9636fad679
commit
4ff1fb8df0
1 changed files with 135 additions and 0 deletions
|
@ -161,6 +161,141 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recent Activity
|
||||||
|
Item {
|
||||||
|
id: recentActivityContainer;
|
||||||
|
anchors.top: securityImageContainer.bottom;
|
||||||
|
anchors.topMargin: 8;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
anchors.bottom: homeMessage.visible ? homeMessage.top : root.bottom;
|
||||||
|
anchors.bottomMargin: 10;
|
||||||
|
|
||||||
|
RalewayRegular {
|
||||||
|
id: recentActivityText;
|
||||||
|
text: "Recent Activity";
|
||||||
|
// Anchors
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
height: 30;
|
||||||
|
// Text size
|
||||||
|
size: 22;
|
||||||
|
// Style
|
||||||
|
color: hifi.colors.faintGray;
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: transactionHistory;
|
||||||
|
anchors.top: recentActivityText.bottom;
|
||||||
|
anchors.topMargin: 4;
|
||||||
|
anchors.bottom: toggleFullHistoryButton.top;
|
||||||
|
anchors.bottomMargin: 8;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
|
||||||
|
// some placeholder stuff
|
||||||
|
RalewayRegular {
|
||||||
|
text: homeMessage.visible ? "you <b>CANNOT</b> scroll through this." : "you <b>CAN</b> scroll through this";
|
||||||
|
// Text size
|
||||||
|
size: 16;
|
||||||
|
// Anchors
|
||||||
|
anchors.fill: parent;
|
||||||
|
// Style
|
||||||
|
color: hifi.colors.darkGray;
|
||||||
|
// Alignment
|
||||||
|
horizontalAlignment: Text.AlignHCenter;
|
||||||
|
verticalAlignment: Text.AlignVCenter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HifiControlsUit.Button {
|
||||||
|
id: toggleFullHistoryButton;
|
||||||
|
color: hifi.buttons.black;
|
||||||
|
colorScheme: hifi.colorSchemes.dark;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
width: 250;
|
||||||
|
height: 40;
|
||||||
|
text: homeMessage.visible ? "See Full Transaction History" : "Collapse Transaction History";
|
||||||
|
onClicked: {
|
||||||
|
if (homeMessage.visible) {
|
||||||
|
homeMessage.visible = false;
|
||||||
|
} else {
|
||||||
|
homeMessage.visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Item for "messages" - like "Welcome"
|
||||||
|
Item {
|
||||||
|
id: homeMessage;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.leftMargin: 20;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
anchors.rightMargin: 20;
|
||||||
|
height: childrenRect.height;
|
||||||
|
|
||||||
|
RalewayRegular {
|
||||||
|
id: messageText;
|
||||||
|
text: "<b>Welcome! Let's get you some spending money.</b><br><br>" +
|
||||||
|
"Now that your account is all set up, click the button below to request your starter money. " +
|
||||||
|
"A robot will promptly review your request and put money into your account.";
|
||||||
|
// Text size
|
||||||
|
size: 16;
|
||||||
|
// Anchors
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
height: 130;
|
||||||
|
// Style
|
||||||
|
color: hifi.colors.faintGray;
|
||||||
|
wrapMode: Text.WordWrap;
|
||||||
|
// Alignment
|
||||||
|
horizontalAlignment: Text.AlignHLeft;
|
||||||
|
verticalAlignment: Text.AlignVCenter;
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: homeMessageButtons;
|
||||||
|
anchors.top: messageText.bottom;
|
||||||
|
anchors.topMargin: 4;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
height: 40;
|
||||||
|
HifiControlsUit.Button {
|
||||||
|
id: noThanksButton;
|
||||||
|
color: hifi.buttons.black;
|
||||||
|
colorScheme: hifi.colorSchemes.dark;
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
anchors.left: parent.left;
|
||||||
|
width: 100;
|
||||||
|
text: "No Thanks"
|
||||||
|
onClicked: {
|
||||||
|
messageText.text = "Okay...weird. Who doesn't like free money? If you change your mind, too bad. Sorry."
|
||||||
|
homeMessageButtons.visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
HifiControlsUit.Button {
|
||||||
|
id: freeMoneyButton;
|
||||||
|
color: hifi.buttons.black;
|
||||||
|
colorScheme: hifi.colorSchemes.dark;
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
anchors.right: parent.right;
|
||||||
|
width: 210;
|
||||||
|
text: "Free Money Please"
|
||||||
|
onClicked: {
|
||||||
|
messageText.text = "Go, MoneyRobots, Go!"
|
||||||
|
homeMessageButtons.visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// FUNCTION DEFINITIONS START
|
// FUNCTION DEFINITIONS START
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue