mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
styling updates for purchases
This commit is contained in:
parent
68c08969ae
commit
751dca0761
1 changed files with 23 additions and 6 deletions
|
@ -180,9 +180,30 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: statusContainer;
|
id: editionContainer;
|
||||||
|
visible: root.displayedItemCount > 1 && !statusContainer.visible;
|
||||||
|
anchors.left: itemName.left;
|
||||||
|
anchors.top: certificateContainer.bottom;
|
||||||
|
anchors.topMargin: 8;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
anchors.right: buttonContainer.left;
|
||||||
|
anchors.rightMargin: 2;
|
||||||
|
|
||||||
visible: root.purchaseStatus || root.displayedItemCount > 1;
|
FiraSansRegular {
|
||||||
|
anchors.left: parent.left;
|
||||||
|
anchors.top: parent.top;
|
||||||
|
anchors.bottom: parent.bottom;
|
||||||
|
width: paintedWidth;
|
||||||
|
text: "#" + root.itemEdition;
|
||||||
|
size: 15;
|
||||||
|
color: "#cc6a6a6a";
|
||||||
|
verticalAlignment: Text.AlignTop;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: statusContainer;
|
||||||
|
visible: root.purchaseStatus === "pending" || root.purchaseStatus === "invalidated";
|
||||||
anchors.left: itemName.left;
|
anchors.left: itemName.left;
|
||||||
anchors.top: certificateContainer.bottom;
|
anchors.top: certificateContainer.bottom;
|
||||||
anchors.topMargin: 8;
|
anchors.topMargin: 8;
|
||||||
|
@ -201,8 +222,6 @@ Item {
|
||||||
"PENDING..."
|
"PENDING..."
|
||||||
} else if (root.purchaseStatus === "invalidated") {
|
} else if (root.purchaseStatus === "invalidated") {
|
||||||
"INVALIDATED"
|
"INVALIDATED"
|
||||||
} else if (root.displayedItemCount > 1) {
|
|
||||||
("#" + root.itemEdition)
|
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
@ -213,8 +232,6 @@ Item {
|
||||||
hifi.colors.blueAccent
|
hifi.colors.blueAccent
|
||||||
} else if (root.purchaseStatus === "invalidated") {
|
} else if (root.purchaseStatus === "invalidated") {
|
||||||
hifi.colors.redAccent
|
hifi.colors.redAccent
|
||||||
} else if (root.displayedItemCount > 1) {
|
|
||||||
hifi.colors.lightGray
|
|
||||||
} else {
|
} else {
|
||||||
hifi.colors.baseGray
|
hifi.colors.baseGray
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue