Add security image to Checkout and Purchases

This commit is contained in:
Zach Fox 2017-08-28 09:33:30 -07:00
parent 4c16366562
commit e293d122b1
2 changed files with 46 additions and 0 deletions

View file

@ -43,6 +43,10 @@ Rectangle {
root.activeView = "notSetUp";
} else if (exists && root.activeView !== "checkoutMain") {
root.activeView = "checkoutMain";
} else if (exists) {
// just set the source again (to be sure the change was noticed)
securityImage.source = "";
securityImage.source = "image://security/securityImage";
}
}
@ -89,6 +93,10 @@ Rectangle {
}
}
HifiWallet.SecurityImageModel {
id: securityImageModel;
}
//
// TITLE BAR START
//
@ -120,6 +128,21 @@ Rectangle {
verticalAlignment: Text.AlignVCenter;
}
// Security Image (TEMPORARY!)
Image {
id: securityImage;
// Anchors
anchors.top: parent.top;
anchors.right: parent.right;
anchors.verticalCenter: parent.verticalCenter;
height: parent.height - 10;
width: height;
fillMode: Image.PreserveAspectFit;
mipmap: true;
cache: false;
source: "image://security/securityImage";
}
// Separator
HifiControlsUit.Separator {
anchors.left: parent.left;

View file

@ -37,6 +37,10 @@ Rectangle {
root.activeView = "notSetUp";
} else if (exists && root.activeView !== "purchasesMain") {
root.activeView = "purchasesMain";
} else if (exists) {
// just set the source again (to be sure the change was noticed)
securityImage.source = "";
securityImage.source = "image://security/securityImage";
}
}
@ -58,6 +62,10 @@ Rectangle {
}
}
HifiWallet.SecurityImageModel {
id: securityImageModel;
}
//
// TITLE BAR START
//
@ -89,6 +97,21 @@ Rectangle {
verticalAlignment: Text.AlignVCenter;
}
// Security Image (TEMPORARY!)
Image {
id: securityImage;
// Anchors
anchors.top: parent.top;
anchors.right: parent.right;
anchors.verticalCenter: parent.verticalCenter;
height: parent.height - 10;
width: height;
fillMode: Image.PreserveAspectFit;
mipmap: true;
cache: false;
source: "image://security/securityImage";
}
// Separator
HifiControlsUit.Separator {
anchors.left: parent.left;