qml: cleanup prev commit, add default icons to MessageDialog, add question icon
This commit is contained in:
BIN
electrum/gui/icons/question.png
Normal file
BIN
electrum/gui/icons/question.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -8,6 +8,9 @@ import "controls"
|
|||||||
ElDialog {
|
ElDialog {
|
||||||
id: dialog
|
id: dialog
|
||||||
title: qsTr("Message")
|
title: qsTr("Message")
|
||||||
|
iconSource: yesno
|
||||||
|
? Qt.resolvedUrl('../../icons/question.png')
|
||||||
|
: Qt.resolvedUrl('../../icons/info.png')
|
||||||
|
|
||||||
property bool yesno: false
|
property bool yesno: false
|
||||||
property alias text: message.text
|
property alias text: message.text
|
||||||
|
|||||||
@@ -245,10 +245,6 @@ Pane {
|
|||||||
text: qsTr('Lightning')
|
text: qsTr('Lightning')
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
|
||||||
text: qsTr('Lightning Routing')
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -260,7 +256,7 @@ Pane {
|
|||||||
if (activeFocus) {
|
if (activeFocus) {
|
||||||
if (!checked) {
|
if (!checked) {
|
||||||
var dialog = app.messageDialog.createObject(app, {
|
var dialog = app.messageDialog.createObject(app, {
|
||||||
text: qsTr('Using plain gossip mode is not recommended. Are you sure?'),
|
text: qsTr('Using plain gossip mode is not recommended on mobile. Are you sure?'),
|
||||||
yesno: true
|
yesno: true
|
||||||
})
|
})
|
||||||
dialog.yesClicked.connect(function() {
|
dialog.yesClicked.connect(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user