mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
History: redesign transaction item
This commit is contained in:
parent
7c379e2cda
commit
f3799b9cb0
1 changed files with 196 additions and 240 deletions
|
@ -588,7 +588,7 @@ Rectangle {
|
||||||
anchors.right: parent ? parent.right : undefined
|
anchors.right: parent ? parent.right : undefined
|
||||||
height: {
|
height: {
|
||||||
if(!collapsed) return 60;
|
if(!collapsed) return 60;
|
||||||
return 320;
|
return 234;
|
||||||
}
|
}
|
||||||
color: {
|
color: {
|
||||||
if(!collapsed) return "transparent"
|
if(!collapsed) return "transparent"
|
||||||
|
@ -602,28 +602,37 @@ Rectangle {
|
||||||
width: sideMargin
|
width: sideMargin
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
visible: !isFailed && !isPending
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.topMargin: 24
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
width: 10
|
|
||||||
height: 10
|
|
||||||
radius: 8
|
|
||||||
color: isout ? "#d85a00" : "#2eb358"
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
visible: isFailed || isPending
|
visible: isFailed || isPending
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: 22
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
font.family: FontAwesome.fontFamilySolid
|
font.family: FontAwesome.fontFamilySolid
|
||||||
font.styleName: isFailed ? "Solid" : ""
|
font.styleName: isFailed ? "Solid" : ""
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
text: isFailed ? FontAwesome.times : FontAwesome.clockO
|
text: isFailed ? FontAwesome.times : FontAwesome.clockO
|
||||||
color: isFailed ? "#FF0000" : MoneroComponents.Style.defaultFontColor
|
color: isFailed ? "#FF0000" : MoneroComponents.Style.defaultFontColor
|
||||||
|
tooltip: isFailed ? qsTr("Failed") : qsTr("Pending") + translationManager.emptyString
|
||||||
themeTransition: false
|
themeTransition: false
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: mouseArea
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: parent.tooltipPopup.open()
|
||||||
|
onExited: parent.tooltipPopup.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
visible: !isout && confirmationsRequired === 60
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 21
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
width: 20
|
||||||
|
height: 20
|
||||||
|
source: "qrc:///images/miningxmr.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,7 +655,13 @@ Rectangle {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
clip: true
|
clip: true
|
||||||
Layout.preferredHeight: 120
|
Layout.preferredHeight: 120
|
||||||
Layout.minimumWidth: 180
|
Layout.minimumWidth: 155
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 10
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
@ -662,34 +677,36 @@ Rectangle {
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
text: (isout ? qsTr("Sent") : qsTr("Received")) + (isFailed ? " (" + qsTr("Failed") + ")" : (isPending ? " (" + qsTr("Pending") + ")" : "")) + translationManager.emptyString
|
text: persistentSettings.historyHumanDates ? dateHuman : dateTime
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
anchors.bottom: parent.bottom
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
anchors.bottomMargin: 0
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
state: "copyable"
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: {
|
||||||
|
parent.color = MoneroComponents.Style.orange
|
||||||
|
if (persistentSettings.historyHumanDates) {
|
||||||
|
parent.text = dateTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onExited: {
|
||||||
|
parent.color = MoneroComponents.Style.defaultFontColor
|
||||||
|
if (persistentSettings.historyHumanDates) {
|
||||||
|
parent.text = dateHuman
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 10
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: (amount == 0 ? qsTr("Unknown amount") : displayAmount) + translationManager.emptyString
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
state: "copyable"
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
onEntered: parent.color = MoneroComponents.Style.orange
|
|
||||||
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -758,39 +775,20 @@ Rectangle {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
clip: true
|
clip: true
|
||||||
Layout.preferredHeight: 120
|
Layout.preferredHeight: 120
|
||||||
Layout.minimumWidth: 230
|
Layout.minimumWidth: 240
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 10
|
Layout.preferredHeight: 30
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: (isout ? qsTr("To") : qsTr("In")) + translationManager.emptyString
|
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
id: addressField
|
id: addressField
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 1
|
||||||
text: {
|
text: {
|
||||||
if (isout) {
|
if (isout) {
|
||||||
if (address) {
|
if (address) {
|
||||||
|
@ -818,9 +816,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
state: isout ? "copyable_address" : "copyable_receiving_address"
|
state: isout ? "copyable_address" : "copyable_receiving_address"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -834,50 +829,127 @@ Rectangle {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 10
|
Layout.preferredHeight: 30
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 10
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 15
|
font.pixelSize: tx_note ? 15 : 12
|
||||||
text: qsTr("Confirmations") + translationManager.emptyString
|
text: tx_note ? tx_note : "(" + qsTr("No description") + ")" + translationManager.emptyString;
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
anchors.top: parent.top
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
anchors.topMargin: 2
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
opacity: 0.7
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
state: "set_tx_note"
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: {
|
||||||
|
parent.opacity = 1;
|
||||||
|
parent.color = MoneroComponents.Style.orange;
|
||||||
|
}
|
||||||
|
onExited: {
|
||||||
|
parent.opacity = 0.7;
|
||||||
|
parent.color = MoneroComponents.Style.defaultFontColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 10
|
||||||
|
}
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
RowLayout{
|
||||||
property bool confirmed: confirmations < confirmationsRequired ? false : true
|
spacing: 0
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
clip: true
|
||||||
font.pixelSize: 15
|
|
||||||
text: confirmed ? confirmations : confirmations + "/" + confirmationsRequired
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
ColumnLayout {
|
||||||
state: "copyable"
|
spacing: 0
|
||||||
anchors.fill: parent
|
clip: true
|
||||||
hoverEnabled: true
|
Rectangle {
|
||||||
onEntered: parent.color = MoneroComponents.Style.orange
|
color: "transparent"
|
||||||
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 20
|
||||||
|
|
||||||
|
MoneroComponents.TextPlain {
|
||||||
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
|
font.pixelSize: 15
|
||||||
|
text: qsTr("Confirmations") + translationManager.emptyString
|
||||||
|
color: MoneroComponents.Style.historyHeaderTextColor
|
||||||
|
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
||||||
|
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 20
|
||||||
|
|
||||||
|
MoneroComponents.TextPlain {
|
||||||
|
property bool confirmed: confirmations < confirmationsRequired ? false : true
|
||||||
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
|
font.pixelSize: 15
|
||||||
|
text: confirmed ? confirmations : confirmations + "/" + confirmationsRequired
|
||||||
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
state: "copyable"
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: parent.color = MoneroComponents.Style.orange
|
||||||
|
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
spacing: 0
|
||||||
|
clip: true
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 20
|
||||||
|
|
||||||
|
MoneroComponents.TextPlain {
|
||||||
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
|
font.pixelSize: 15
|
||||||
|
text: qsTr("Blockheight") + translationManager.emptyString
|
||||||
|
color: MoneroComponents.Style.historyHeaderTextColor
|
||||||
|
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
||||||
|
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 20
|
||||||
|
|
||||||
|
MoneroComponents.TextPlain {
|
||||||
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
|
font.pixelSize: 14
|
||||||
|
text: (blockheight > 0 ? blockheight : qsTr('Pending')) + translationManager.emptyString;
|
||||||
|
|
||||||
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
state: "copyable"
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onEntered: parent.color = MoneroComponents.Style.orange
|
||||||
|
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -893,7 +965,13 @@ Rectangle {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
clip: true
|
clip: true
|
||||||
Layout.preferredHeight: 120
|
Layout.preferredHeight: 120
|
||||||
Layout.minimumWidth: 130
|
Layout.minimumWidth: 145
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: 10
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
@ -907,47 +985,35 @@ Rectangle {
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 20
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
text: qsTr("Date")
|
text: (isout ? "-" : "+") + (amount == 0 ? "? XMR" : displayAmount);
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
color: {
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
if (amountMouseArea.containsMouse) return MoneroComponents.Style.orange
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
if (isout) return "#d85a00"
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
if (!isout) return "#2eb358"
|
||||||
|
}
|
||||||
|
themeTransition: false
|
||||||
|
tooltip: amount == 0 ? qsTr("Unknown amount") : "" + translationManager.emptyString;
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: amountMouseArea
|
||||||
|
state: "copyable"
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
onEntered: parent.tooltip ? parent.tooltipPopup.open() : ""
|
||||||
|
onExited: parent.tooltip ? parent.tooltipPopup.close() : ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 20
|
Layout.preferredHeight: 10
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: persistentSettings.historyHumanDates ? dateHuman : dateTime
|
|
||||||
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
state: "copyable"
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
onEntered: {
|
|
||||||
parent.color = MoneroComponents.Style.orange
|
|
||||||
if (persistentSettings.historyHumanDates) {
|
|
||||||
parent.text = dateTime;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onExited: {
|
|
||||||
parent.color = MoneroComponents.Style.defaultFontColor
|
|
||||||
if (persistentSettings.historyHumanDates) {
|
|
||||||
parent.text = dateHuman
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -993,15 +1059,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
|
||||||
visible: !isout && confirmationsRequired === 60
|
|
||||||
anchors.left: btnDetails.right
|
|
||||||
anchors.leftMargin: 16
|
|
||||||
width: 28
|
|
||||||
height: 28
|
|
||||||
source: "qrc:///images/miningxmr.png"
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
visible: isout
|
visible: isout
|
||||||
anchors.left: btnDetails.right
|
anchors.left: btnDetails.right
|
||||||
|
@ -1039,68 +1096,6 @@ Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 40
|
Layout.preferredHeight: 40
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: qsTr("Description") + translationManager.emptyString
|
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
id: txNoteText
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: tx_note !== "" ? tx_note : "-"
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
state: "copyable"
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
onEntered: parent.color = MoneroComponents.Style.orange
|
|
||||||
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroEffects.ImageMask {
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.left: txNoteText.right
|
|
||||||
anchors.leftMargin: 12
|
|
||||||
image: "qrc:///images/edit.svg"
|
|
||||||
fontAwesomeFallbackIcon: FontAwesome.pencilSquare
|
|
||||||
fontAwesomeFallbackSize: 22
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
opacity: 0.75
|
|
||||||
width: 23
|
|
||||||
height: 21
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
id: txNoteArea
|
|
||||||
state: "set_tx_note"
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
onEntered: parent.opacity = 0.4;
|
|
||||||
onExited: parent.opacity = 0.75;
|
|
||||||
cursorShape: Qt.PointingHandCursor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -1196,45 +1191,6 @@ Rectangle {
|
||||||
Layout.preferredHeight: 10
|
Layout.preferredHeight: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 15
|
|
||||||
text: qsTr("Blockheight") + translationManager.emptyString
|
|
||||||
color: MoneroComponents.Style.historyHeaderTextColor
|
|
||||||
themeTransitionBlackColor: MoneroComponents.Style._b_historyHeaderTextColor
|
|
||||||
themeTransitionWhiteColor: MoneroComponents.Style._w_historyHeaderTextColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: "transparent"
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.preferredHeight: 20
|
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
|
||||||
font.pixelSize: 14
|
|
||||||
text: (blockheight > 0 ? blockheight : qsTr('Pending')) + translationManager.emptyString;
|
|
||||||
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
state: "copyable"
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
onEntered: parent.color = MoneroComponents.Style.orange
|
|
||||||
onExited: parent.color = MoneroComponents.Style.defaultFontColor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
Loading…
Reference in a new issue