Fix gray securityimage

This commit is contained in:
Zach Fox 2017-09-29 14:30:02 -07:00
parent 63396a2fc3
commit bbbce96407
6 changed files with 8 additions and 2 deletions

View file

@ -82,6 +82,7 @@ Rectangle {
height: 140; height: 140;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true; mipmap: true;
cache: false;
} }
RalewayRegular { RalewayRegular {

View file

@ -212,6 +212,7 @@ Item {
anchors.bottomMargin: 16; anchors.bottomMargin: 16;
width: height; width: height;
mipmap: true; mipmap: true;
cache: false;
MouseArea { MouseArea {
enabled: securityImage.visible; enabled: securityImage.visible;

View file

@ -129,6 +129,7 @@ Item {
width: height; width: height;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true; mipmap: true;
cache: false;
MouseArea { MouseArea {
enabled: titleBarSecurityImage.visible; enabled: titleBarSecurityImage.visible;

View file

@ -65,6 +65,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
fillMode: Image.PreserveAspectFit; fillMode: Image.PreserveAspectFit;
mipmap: true; mipmap: true;
cache: false;
} }
} }
MouseArea { MouseArea {

View file

@ -140,6 +140,7 @@ Rectangle {
anchors.bottomMargin: 6; anchors.bottomMargin: 6;
width: height; width: height;
mipmap: true; mipmap: true;
cache: false;
MouseArea { MouseArea {
enabled: titleBarSecurityImage.visible; enabled: titleBarSecurityImage.visible;

View file

@ -43,7 +43,7 @@ Item {
if (!exists && root.lastPage === "step_2") { if (!exists && root.lastPage === "step_2") {
// ERROR! Invalid security image. // ERROR! Invalid security image.
root.activeView = "step_2"; root.activeView = "step_2";
} else { } else if (exists) {
titleBarSecurityImage.source = ""; titleBarSecurityImage.source = "";
titleBarSecurityImage.source = "image://security/securityImage"; titleBarSecurityImage.source = "image://security/securityImage";
} }
@ -116,7 +116,7 @@ Item {
Image { Image {
id: titleBarSecurityImage; id: titleBarSecurityImage;
source: ""; source: "";
visible: !securityImageTip.visible && titleBarSecurityImage.source !== ""; visible: !securityImageTip.visible && titleBarSecurityImage.source !== "" && root.activeView !== "step_1" && root.activeView !== "step_2";
anchors.right: parent.right; anchors.right: parent.right;
anchors.rightMargin: 6; anchors.rightMargin: 6;
anchors.top: parent.top; anchors.top: parent.top;
@ -125,6 +125,7 @@ Item {
anchors.bottomMargin: 6; anchors.bottomMargin: 6;
width: height; width: height;
mipmap: true; mipmap: true;
cache: false;
MouseArea { MouseArea {
enabled: titleBarSecurityImage.visible; enabled: titleBarSecurityImage.visible;