mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-03 11:36:28 +00:00
https://trello.com/c/kyZNLKlk/61-hide-payment-id-in-history-if-unused-for-a-transaction
This commit is contained in:
parent
84c251398c
commit
414e85e611
4 changed files with 12 additions and 29 deletions
|
@ -86,7 +86,7 @@ ListView {
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
font.letterSpacing: -1
|
font.letterSpacing: -1
|
||||||
color: "#535353"
|
color: "#535353"
|
||||||
text: qsTr("Payment ID:")
|
text: paymentId !== "" ? qsTr("Payment ID:") : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
|
@ -95,8 +95,6 @@ Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appWindow.visibility = Window.Minimized
|
appWindow.visibility = Window.Minimized
|
||||||
// parent.containsMouse = Qt.binding(function(){ return titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width &&
|
|
||||||
// appWindow.visibility !== Window.Minimized })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
main.qml
1
main.qml
|
@ -86,6 +86,7 @@ ApplicationWindow {
|
||||||
height: 800
|
height: 800
|
||||||
color: "#FFFFFF"
|
color: "#FFFFFF"
|
||||||
flags: Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
|
flags: Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
|
||||||
|
onVisibilityChanged: visible = visibility !== Window.Minimized
|
||||||
onWidthChanged: x -= 0
|
onWidthChanged: x -= 0
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
|
@ -147,8 +147,7 @@ Rectangle {
|
||||||
anchors.rightMargin: 17
|
anchors.rightMargin: 17
|
||||||
anchors.topMargin: 17
|
anchors.topMargin: 17
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
text: qsTr("Description <font size='2'>( Local database )</font>")
|
text: qsTr("Description <font size='2'>( An optional description that will be saved to the local address book if entered )</font>")
|
||||||
visible: checkBox.checked
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LineEdit {
|
LineEdit {
|
||||||
|
@ -159,20 +158,14 @@ Rectangle {
|
||||||
anchors.leftMargin: 17
|
anchors.leftMargin: 17
|
||||||
anchors.rightMargin: 17
|
anchors.rightMargin: 17
|
||||||
anchors.topMargin: 5
|
anchors.topMargin: 5
|
||||||
visible: checkBox.checked
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: checkBox.checked ? descriptionLine.bottom : paymentLine.bottom
|
|
||||||
anchors.leftMargin: 17
|
|
||||||
anchors.rightMargin: 17
|
|
||||||
anchors.topMargin: 17
|
|
||||||
spacing: 17
|
|
||||||
|
|
||||||
StandardButton {
|
StandardButton {
|
||||||
id: sendButton
|
id: sendButton
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.top: descriptionLine.bottom
|
||||||
|
anchors.leftMargin: 17
|
||||||
|
anchors.topMargin: 17
|
||||||
width: 60
|
width: 60
|
||||||
text: qsTr("SEND")
|
text: qsTr("SEND")
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
|
@ -180,13 +173,4 @@ Rectangle {
|
||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
|
||||||
id: checkBox
|
|
||||||
text: qsTr("Add to Address book")
|
|
||||||
anchors.bottom: sendButton.bottom
|
|
||||||
checkedIcon: "../images/checkedOrangeIcon.png"
|
|
||||||
uncheckedIcon: "../images/uncheckedIcon.png"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue