Browse Source

qml: use closebutton icon for label edit cancel

UI PIN entry dialog
patch-4
Sander van Grieken 3 years ago
parent
commit
2ea1d88567
  1. 2
      electrum/gui/qml/components/AddressDetails.qml
  2. 2
      electrum/gui/qml/components/LightningPaymentDetails.qml
  3. 35
      electrum/gui/qml/components/Pin.qml
  4. 2
      electrum/gui/qml/components/TxDetails.qml

2
electrum/gui/qml/components/AddressDetails.qml

@ -143,7 +143,7 @@ Pane {
}
ToolButton {
visible: labelContent.editmode
icon.source: '../../icons/delete.png'
icon.source: '../../icons/closebutton.png'
icon.color: 'transparent'
onClicked: labelContent.editmode = false
}

2
electrum/gui/qml/components/LightningPaymentDetails.qml

@ -136,7 +136,7 @@ Pane {
}
ToolButton {
visible: labelContent.editmode
icon.source: '../../icons/delete.png'
icon.source: '../../icons/closebutton.png'
icon.color: 'transparent'
onClicked: labelContent.editmode = false
}

35
electrum/gui/qml/components/Pin.qml

@ -10,6 +10,8 @@ import "controls"
Dialog {
id: root
title: qsTr('PIN')
width: parent.width * 2/3
height: parent.height * 1/3
@ -58,6 +60,39 @@ Dialog {
}
}
header: GridLayout {
columns: 2
rowSpacing: 0
Image {
source: "../../icons/lock.png"
Layout.preferredWidth: constants.iconSizeXLarge
Layout.preferredHeight: constants.iconSizeXLarge
Layout.leftMargin: constants.paddingMedium
Layout.topMargin: constants.paddingMedium
Layout.bottomMargin: constants.paddingMedium
}
Label {
text: title
elide: Label.ElideRight
Layout.fillWidth: true
topPadding: constants.paddingXLarge
bottomPadding: constants.paddingXLarge
font.bold: true
font.pixelSize: constants.fontSizeMedium
}
Rectangle {
Layout.columnSpan: 2
Layout.fillWidth: true
Layout.leftMargin: constants.paddingXXSmall
Layout.rightMargin: constants.paddingXXSmall
height: 1
color: Qt.rgba(0,0,0,0.5)
}
}
ColumnLayout {
width: parent.width
height: parent.height

2
electrum/gui/qml/components/TxDetails.qml

@ -168,7 +168,7 @@ Pane {
}
ToolButton {
visible: labelContent.editmode
icon.source: '../../icons/delete.png'
icon.source: '../../icons/closebutton.png'
icon.color: 'transparent'
onClicked: labelContent.editmode = false
}

Loading…
Cancel
Save